-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
Fix an issue where no newline is present after the doctype when indent=no #5370
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test issue in webdav
@dizzz yes I saw that too. I will push updates soon. |
Quality Gate failedFailed conditions |
If you load XML via |
@dizzzz this PR does only change the behaviour of the doctype. |
@@ -42,7 +42,7 @@ public void setUp() throws Exception { | |||
|
|||
@Test | |||
public void testAttributeWithBooleanValue() throws Exception { | |||
final String expected = "<!DOCTYPE html>\n<input checked>"; | |||
final String expected = "<!DOCTYPE html><input checked>"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a bit confused. I thought the purpose of your change was to ensure that there was always a line break after the doctype declaration. Your changes to this test seem to show the opposite though.
@@ -847,36 +847,39 @@ function ser:serialize-xml-134() { | |||
}; | |||
|
|||
declare | |||
%test:assertEquals('<!DOCTYPE html> <option selected></option>') | |||
%test:assertEquals('<!DOCTYPE html><option selected></option>') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question as above.
"<!DOCTYPE bookmap PUBLIC \"-//OASIS//DTD DITA BookMap//EN\" \"bookmap.dtd\">\n" + | ||
"<bookmap id=\"bookmap-1\"/>"; | ||
"<!DOCTYPE bookmap PUBLIC \"-//OASIS//DTD DITA BookMap//EN\" \"bookmap.dtd\">" + | ||
"<bookmap id=\"bookmap-1\"><title>The Title</title></bookmap>"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why add a child element here, it doesn't seem that it has changed anything else about the test?
fixes #4736
Before
AFTER