Skip to content

bpo-36407: Fix writing indentations of CDATA section (xml.dom.minidom)#12514

Merged
serhiy-storchaka merged 4 commits into
python:masterfrom
vsurjaninov:xml-minidom-cdata-writing
Mar 27, 2019
Merged

bpo-36407: Fix writing indentations of CDATA section (xml.dom.minidom)#12514
serhiy-storchaka merged 4 commits into
python:masterfrom
vsurjaninov:xml-minidom-cdata-writing

Conversation

@vsurjaninov

@vsurjaninov vsurjaninov commented Mar 23, 2019

Copy link
Copy Markdown
Contributor

bpo-36407: This little change fixes indentations when we are writing xml with CDATA section. Also a result document now can be parsed correctly as if we would write it without indentations.

https://bugs.python.org/issue36407

@the-knights-who-say-ni

Copy link
Copy Markdown

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Our records indicate we have not received your CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

If you have recently signed the CLA, please wait at least one business day
before our records are updated.

You can check yourself to see if the CLA has been received.

Thanks again for your contribution, we look forward to reviewing it!

@scoder scoder left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix looks good to me, thanks!

Comment thread Lib/test/test_minidom.py Outdated
@scoder

scoder commented Mar 23, 2019

Copy link
Copy Markdown
Contributor

Test also looks good now. CLA pending.

@eamanu eamanu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Please sign cla

Comment thread Misc/NEWS.d/next/Library/2019-03-23-17-16-15.bpo-36407.LG3aC4.rst Outdated
@serhiy-storchaka
serhiy-storchaka merged commit 384b81d into python:master Mar 27, 2019
@serhiy-storchaka serhiy-storchaka added type-bug An unexpected behavior, bug, or error needs backport to 2.7 labels Mar 27, 2019
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @vsurjaninov for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @vsurjaninov for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@miss-islington

Copy link
Copy Markdown
Contributor

Sorry, @vsurjaninov and @serhiy-storchaka, I could not cleanly backport this to 3.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 384b81d923addd52125e94470b11d2574ca266a9 3.7

@bedevere-bot

Copy link
Copy Markdown

GH-12578 is a backport of this pull request to the 2.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 27, 2019
…). (pythonGH-12514)

(cherry picked from commit 384b81d)

Co-authored-by: Vladimir Surjaninov <vsurjaninov@gmail.com>
@serhiy-storchaka serhiy-storchaka removed their assignment Mar 27, 2019
@serhiy-storchaka serhiy-storchaka added the type-feature A feature request or enhancement label Mar 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants