[erlang-bugs] edoc doesn't process Wiki style headings when using CR+LF line endings in overview.edoc

luc.tanguay@REDACTED luc.tanguay@REDACTED
Thu Sep 6 15:47:14 CEST 2012


Same thing on Windows XP and R14B02.  Removing all the LF (i.e. ^M) in my overview.edoc (in Emacs), the Wiki headings show properly.

To open the file in "unix" mode in emacs:
C-x RET c unix RET C-x C-f overview.edoc

Luc
-----Original Message-----
From: erlang-bugs-bounces@REDACTED [mailto:erlang-bugs-bounces@REDACTED] On Behalf Of Björn Bylander
Sent: September 6, 2012 07:58
To: erlang-bugs@REDACTED
Subject: [erlang-bugs] edoc doesn't process Wiki style headings when using CR+LF line endings in overview.edoc

Hi,

I've come to the conclusion that EDoc doesn't correctly process Wiki style headings when using CR+LF line endings in the overview file (overview.edoc).

Operating System: Microsoft Windows 7 64-bit.
Erlang/OTP release: both R15B01 and R15B02. Haven't tried on earlier releases.

Invoking EDoc with the code below in an overview.edoc using CR+LF as line endings results in the Contents heading being rendered as "<p>== Contents ==</p>" while, using only LF as line ending, it's rendered as "<h3><a name="Contents">Contents</a></h3>".

Also, if the "blah blah" is removed and CR+LF is used, nothing is rendered apart from the standard header and footer.

Example overview.edoc contents:

@doc blah blah

== Contents ==

<ol>
  <li>{@section Introduction}</li>
  <li>{@section Outroduction}</li>
</ol>

== Introduction ==

This is a nice introduction...

== Introduction ==

and here's the outroduction.
@end


Best regards,
Björn Bylander

_______________________________________________
erlang-bugs mailing list
erlang-bugs@REDACTED
http://erlang.org/mailman/listinfo/erlang-bugs



More information about the erlang-bugs mailing list