Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid auto-newlines in multi-line ordered lists #38

Open
GoogleCodeExporter opened this issue Jan 27, 2016 · 4 comments
Open

Invalid auto-newlines in multi-line ordered lists #38

GoogleCodeExporter opened this issue Jan 27, 2016 · 4 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
Transform the following text with  AutoNewlines option set to true:

1. Line1
   Line2

   Line3
   Line4

2. Suspendisse id sem consectetuer libero luctus adipiscing

Expected output:
<ol>
<li><p>Line1<br>
Line2</p>

<p>Line3<br>
Line4</p></li>
</ol>

Actual output:
<ol>
<li><p>Line1<br
Line2</p>

<p>Line3<br
Line4</p></li>
</ol>

Original issue reported on code.google.com by eug.bara...@gmail.com on 22 Dec 2010 at 7:18

@GoogleCodeExporter
Copy link
Author

Oh, just noticed that this is not a defect but rather lacking of good default 
value for  MarkdownOptions.EmptyElementSuffix

Original comment by eug.bara...@gmail.com on 22 Dec 2010 at 7:27

@GoogleCodeExporter
Copy link
Author

Here's a patch that modifies the constructor to only read EmptyElementSuffix 
value from the MarkdownOptions object if MarkdownOptions.EmptyElementSuffix is 
not null or empty.

Original comment by cagdaste...@gmail.com on 4 Feb 2011 at 2:59

Attachments:

@GoogleCodeExporter
Copy link
Author

nice, good catch, will add that

Original comment by wump...@gmail.com on 28 Feb 2011 at 5:01

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Issue 41 has been merged into this issue.

Original comment by wump...@gmail.com on 28 Feb 2011 at 5:03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant