-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
[bugfix] omit newline after doctype with 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. |
"<!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?
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.
The child element was added to see the effect of indent=no
to slightly more complex data.
@@ -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.
would it be useful to have an other test with the \n still there, to show the (non?) effect of the changes?
fixes #4736
Before
AFTER