W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2017

Preventing a line break?

From: Harlan Stenn <stenn@nwtime.org>
Date: Thu, 26 Oct 2017 23:42:49 -0700
To: html-tidy@w3.org
Message-ID: <f15f56e3-5d2d-4e75-a230-29b1e6b6e8cf@nwtime.org>
I'm running tidy 5.5.70, and when tidy sees a line like:

<p>Last update: <!-- #BeginDate format:En2m -->11-Sep-2010 05:53<!--
#EndDate -->

(a single line) it turns it into:

<p>Last update: <!-- #BeginDate format:En2m -->11-Sep-2010 05:53
<!-- #EndDate -->

which, ordinarily, is a perfectly fine thing to do.

The trick is, the script we have to auto-update the timestamp inside the:

 <!-- #BeginDate format:En2m -->11-Sep-2010 05:53<!-- #EndDate -->

section can't easily handle having the end tag be on a separate line.

Is there a way that I can tell tidy to avoid cleaning up this line?
-- 
Harlan Stenn <stenn@nwtime.org>
http://networktimefoundation.org - be a member!
Received on Friday, 27 October 2017 16:20:32 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 16:20:37 UTC