Skip to content

fix(doc): ensure the documentation content doesn't overflow #457

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

Merged
merged 1 commit into from
Nov 5, 2015
Merged

Conversation

redox
Copy link
Contributor

@redox redox commented Nov 4, 2015

I had a hard time finding how to fix this one 💀

Fix #444

(includes a fix in the indentation of the HTML code as well)

Fix #444

(includes a fix in the indentation of the HTML code as well)
vvo pushed a commit that referenced this pull request Nov 5, 2015
fix(doc): ensure the documentation content doesn't overflow
@vvo vvo merged commit 1d6a92f into develop Nov 5, 2015
@vvo vvo deleted the fix/444 branch November 5, 2015 09:04
@@ -84,7 +84,7 @@
source += ' ';
}
source += line + '\n';
if (line.indexOf('<') === 0 && line.indexOf('</') !== 0) {
if (line.indexOf('<') === 0 && line.indexOf('</') !== 0 && line.indexOf('<input') === -1) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Care to explain/document what this voodoo line is doing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It indents if the line is starting with a tag, but NOT a closing tag, and NOT a one-line tag (only <input> here) :)

aymeric-giraudet pushed a commit that referenced this pull request Dec 8, 2022
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.

docs: When using small screens "View HTML" breaks the layout
4 participants