-
Notifications
You must be signed in to change notification settings - Fork 39
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
Treat two adjacent paragraphs where both paragraphs have zero margin as two lines #97
Comments
This is actually intentional; line breaks ( That said, checking That then comes through with markup like: <p style="text-indent: 36pt; margin-top: 0pt; margin-bottom: 0pt;">
<span style="...">
Paragraphs with the first line indented like this need to come off as separate paragraphs and not just line breaks.
</span>
</p>
<p style="text-indent: 36pt; margin-top: 0pt; margin-bottom: 0pt;">
<span style="...">
This should be a new paragraph and so on and forth blahbety blahbety blah blah blah this is a long line line.
</span>
</p>
<br />
<p style="text-indent: -36pt; margin-top: 0pt; margin-bottom: 0pt; padding: 0pt 0pt 0pt 36pt;">
<span style="...">
And similarly for outdenting like this — also separate paragraphs and not just line breaks blah blah blah blah blah.
</span>
</p>
<p style="text-indent: -36pt; margin-top: 0pt; margin-bottom: 0pt; padding: 0pt 0pt 0pt 36pt;">
<span style="...">
This should be a new paragraph and so on and forth blahbety blahbety blah blah blah this is a long line line.
</span>
</p>
<br />
<p dir="ltr" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;">
<span style="...">
<span class="Apple-tab-span" style="white-space: pre;"> <!-- note this is an actual tab character, not a space --></span>
</span>
<span style="...">
Also paragraphs with the first line indented manually with a tab stop like this one, should be separate as well.
</span>
</p>
<p dir="ltr" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;">
<span style="...">
<span class="Apple-tab-span" style="white-space: pre;"> <!-- note this is an actual tab character, not a space --></span>
</span>
<span style="...">
This should be a new paragraph because it’s formatted the same as above, with a manual tab stop at the start of the line.
</span>
</p> I assume the manual tab stops ( |
By default, Google Docs gives paragraphs a margin of 0, meaning that two adjacent paragraphs look like as if they had only a line break between them.
Current behavior:
Corresponding markup:
Expected behavior:
So:
If a paragraph has
margin-bottom:0
and the next element is also a paragraph havingmargin-top:0
, then the two elements should be merged, and a linebreak should be inserted in place of their previous border.The text was updated successfully, but these errors were encountered: