feature: traling space in a node

Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

feature: traling space in a node

Markus Ohlenroth

Dear support,

 

I use tidy online found at

https://infohound.net/tidy/tidy.pl

 

 

I have trailing space in nodes of a html file, which I would like to preserve when converting the file to xml

I could not find any hints in the documentation whether this is possible or not.

 

Could you give me tip where to look. That would be great. Thanks very much in advance and kind regards

Markus Ohlenroth

 

Example

In the following example the space after “El” is removed in the result file

 

<span lang=ES style='mso-bidi-font-family:"Times New Roman";

text-transform:uppercase'>El </span>

 

Tidy’s transormation:

<span lang="ES"

style='mso-bidi-font-family:"Times New Roman"; text-transform:uppercase'>El</span>

</span>

 

 

Mit freundlichen Grüßen

Markus Ohlenroth

 

--

Dr. Markus Ohlenroth

EDV Betreuung PhilSo

Universitaet Augsburg

Universitaetsstr. 10

86159 Augsburg

Tel: 0821/598-5511

 

Reply | Threaded
Open this post in threaded view
|

Re: feature: traling space in a node

Geoff McLane
Hi Markus,

Thank you for your 'feature' inquiry concerning
a trailing space...

IIRC, this has come up several times in the past,
or something like it, but the answer remains the
same, I think...

Tidy has no option to preserve such a trailing
space... it **will** remove it...

You could file a **Feature Request** issue on -
https://github.com/htacg/tidy-html5/issues

But you would face a question of the use case...

Why do you need this space preserved? What purpose?
What is gained? etc...

And note if you input -

````
<span lang=ES>El </span><span class="abc">CID</span>
````

Current Tidy will preserve the space, in a way, by
outputting -

````
<span lang=ES>El</span> <span class="abc">CID</span>
````

I note that online site - https://infohound.net/tidy/tidy.pl
is running a very old version of 'Tidy', circa 2009,
and has old sourceforge site links here and there...

If you use the site often, maybe you could send some
feedback to Jonathan Hedley, advising that the tidy site
has moved to http://www.html-tidy.org/, and sources to
GitHub - https://github.com/htacg/tidy-html5...

But this trailing space case would be the same in the
latest Tidy, `master` 5.3.9, so would be no gain for
you...

Hope this helps...

Regards,
Geoff.