View Single Post
Old 08-17-2018, 04:11 AM   #1
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
[Issue] Pretty Printing <mark>

<mark> is a new HTML5 element used for highlighting:

https://developer.mozilla.org/en-US/...L/Element/mark
https://www.w3.org/TR/html5/textleve...e-mark-element

<mark> is mostly used in-line. For example:

Spoiler:
Code:
<p>This is an example of <mark class="match">marked text</mark>.</p>

<p>And a “quote that is <mark>important</mark>.”</p>


After Pretty Printing in Sigil, each <mark> gets extra whitespace + placed on their own lines:

Spoiler:
Code:
  <p>This is an example of 

  <mark class="match">marked text</mark>

.</p>

  <p>And a “quote that is 

  <mark>important</mark>

.”</p>


In many cases, this extra whitespace can completely botch the spacing (especially around punctuation).

The actual display before Pretty Print:

Code:
This is an example of marked text.

And a “quote that is important.”
After Pretty Print:

Code:
This is an example of marked text .

And a “quote that is important .”
For Pretty Printing, <mark> should probably be treated just like a <b> or <i> tag.

Last edited by Tex2002ans; 08-17-2018 at 05:39 AM.
Tex2002ans is offline   Reply With Quote