reformat - move paragraph direction and image size from style attribute to "classic" attribute by ophiry · Pull Request #39 · PythonFreeCourse/Notebooks · GitHub
Skip to content

reformat - move paragraph direction and image size from style attribute to "classic" attribute#39

Open
ophiry wants to merge 1 commit intoPythonFreeCourse:mainfrom
ophiry:reformat
Open

reformat - move paragraph direction and image size from style attribute to "classic" attribute#39
ophiry wants to merge 1 commit intoPythonFreeCourse:mainfrom
ophiry:reformat

Conversation

@ophiry
Copy link
Copy Markdown

@ophiry ophiry commented Sep 14, 2020

re: #37

Comment thread week1/2_Arithmetics.ipynb
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.

If it is OK on your side, I'd prefer not to move around attributes in places where it doesn't make a difference :)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I used a html parser (BeautifulSoup) to do the reformatting - there's no direct control on all the details of the generated html

Comment thread week1/2_Arithmetics.ipynb
"לפעמים נרצה לצרף דברי הסבר לקוד שכתבנו.<br>\n",
"כדי להוסיף הסברים לצד הקוד נשתמש בתו סולמית, ומייד אחריה נכתוב את ההסברים שרצינו לצרף.<br>\n",
"<p dir=\"rtl\" style=\"text-align: right; direction: rtl; float: right; clear: both;\">\n",
"לפעמים נרצה לצרף דברי הסבר לקוד שכתבנו.<br/>\n",
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.

Let's not add closing tags to our brs, we're on HTML5 :)

"<li><code>\"_)(*&^%\"</code></li>\n",
"<li><code>\"_)('*&^%\"</code></li>\n",
" <li><code>\"_)(\"*&^%\"</code></li>\n",
"<li><code>\"_)(*&amp;^%\"</code></li>\n",
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.

Is this behavior required?

@smith-kyle
Copy link
Copy Markdown

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants