Skip to content

bpo-35603: Add a note on difflib table header interpreted as HTML - #11439

Merged
JulienPalard merged 3 commits into
python:masterfrom
tirkarthi:bpo35603-doc-fix
Sep 11, 2019
Merged

JulienPalard merged 3 commits into
python:masterfrom
tirkarthi:bpo35603-doc-fix

Conversation

@tirkarthi

@tirkarthi tirkarthi commented Jan 5, 2019 •

Copy link
Copy Markdown
Member

This adds a doc note on the difflib make_file output. Wording suggestions are welcome.

Output as note :

screen shot 2019-01-06 at 1 11 54 am

Output as warning :

screen shot 2019-01-06 at 1 12 38 am

https://bugs.python.org/issue35603

@epicfaace

epicfaace commented Jan 7, 2019 •

Copy link
Copy Markdown
Contributor

I think the warning looks better. Maybe it would be clearer if you said "fromdesc and todesc are interpreted as unescaped HTML"?

Additionally, it may be better to move the warning right after the paragraph describing fromdesc and todesc.

@tirkarthi

Copy link
Copy Markdown
Member Author

Additionally, it may be better to move the warning right after the paragraph describing fromdesc and todesc.

Thanks for the feedback. From what I have seen in docs notes/warnings are generally grouped and placed at the end of docs for a function/class and I feel it can distract the user from rest of docs for make_file if it's in the middle . I have used notes because I don't know if this is intentional or missed during the initial API which was developed during python 2.7.

@tirkarthi

Copy link
Copy Markdown
Member Author

I think the warning looks better. Maybe it would be clearer if you said "fromdesc and todesc are interpreted as unescaped HTML"?

Rephrased note as suggested. Thanks!

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think it is better to place the note above the versionchanged directive.

@tirkarthi

Copy link
Copy Markdown
Member Author

@serhiy-storchaka I have placed it above versionchanged . I just checked the docs and there doesn't seem to be any convention over this. Local build screenshot as below :

screen shot 2019-01-08 at 5 36 43 pm

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @tirkarthi for the PR, and @JulienPalard for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 11, 2019
@bedevere-bot

Copy link
Copy Markdown

GH-15922 is a backport of this pull request to the 3.8 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants