logo       

[ tidy-Bugs-1210752 ] -raw adds XML declaration: msg#00040

web.html-tidy.tracker

Subject: [ tidy-Bugs-1210752 ] -raw adds XML declaration

Bugs item #1210752, was opened at 2005-05-29 11:56
Message generated for change (Settings changed) made by arnaud02
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1210752&group_id=27659

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Pretty Printer
Group: Current - all platforms
Status: Open
Resolution: None
>Priority: 6
Submitted By: pornel (pornel)
Assigned to: Nobody/Anonymous (nobody)
Summary: -raw adds XML declaration

Initial Comment:
I'm trying to clean XHTML Strict documents with:

tidy.exe -m -raw -wrap 2000 -i --indent-spaces 1 --vertical-
space no --force-output yes --tidy-mark no --output-xhtml
yes --add-xml-decl no "%1"

Despite --add-xml-decl no Tidy adds XML declaration.


----------------------------------------------------------------------

Comment By: Björn Höhrmann (hoehrmann)
Date: 2005-05-29 12:23

Message:
Logged In: YES
user_id=188003

Okay, I see, minimal example would be

echo '<p>...' | tidy -asxml -raw

----------------------------------------------------------------------

Comment By: pornel (pornel)
Date: 2005-05-29 12:09

Message:
Logged In: YES
user_id=269973

<h1>Test</h1>

results in:

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//
EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<title></title>
</head>

<body>
<h1>Test</h1>
</body>
</html>

Used HTML Tidy for Windows released on 12 April 2005

----------------------------------------------------------------------

Comment By: Björn Höhrmann (hoehrmann)
Date: 2005-05-29 12:07

Message:
Logged In: YES
user_id=188003

By "add" do you mean it keeps an existing one? That'd be
intentional. If not, could you attach sample input?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1210752&group_id=27659


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise