edoc: infinite loop

Taylor Venable taylor@REDACTED
Tue Feb 1 02:46:26 CET 2011


On Sat, Jan 29, 2011 at 22:01, Taylor Venable <taylor@REDACTED> wrote:
> Hi there, the following seems to produce an infinite loop in edoc
> (version 0.7.6.8):
>
> %% START FILE
> %% @doc
> %% ```
>
> %% text
> %% '''
>
> -module(test).
> -export([foo/0]).
>
> foo() -> ok.
> %% END FILE

The problem comes from edoc_wiki:strip_empty_lines/2 -
edoc_wiki:expand/3 passes it an empty list in this case, and that
causes strip_empty_spaces to infinitely recurse.

-- 
Taylor C. Venable
http://metasyntax.net/


More information about the erlang-questions mailing list