Skip to content

Conversation

@Krejdom
Copy link
Contributor

@Krejdom Krejdom commented Mar 7, 2017

  • Remove the gray padding under the image in Chrome.
  • Put hard spaces after "a" and "i".

<p class="responsive-text card-text center">Nauč se Python, staň se superhrdinou nebo superhrdinkou a zachraň svět.<br>
Python je moderní programovací jazyk. Je univerzální – pohání weby i rakety.
Dobře se čte a dá se velice rychle naučit.</p>
<p class="responsive-text card-text center">Nauč se Python, staň se superhrdinou nebo superhrdinkou a&nbsp;zachraň svět.<br>
Copy link
Member

Choose a reason for hiding this comment

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

Please use Unicode non-breaking spaces to keep the source readable.

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's not possible in html. :(

Copy link
Member

Choose a reason for hiding this comment

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

It sure is. But I'd recommend to keep visible entities, because in many editors this is no different from normal space and it's confusing as hell for a coder.

Other way to keep cleaner text would be a postprocessing that automatically replaces spaces. Kind of like Texy! does.

Copy link
Member

Choose a reason for hiding this comment

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

And typographicaly it's ok to break line after „a“ and „i“. But I don’t like it either.

Copy link
Member

Choose a reason for hiding this comment

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

I disagree about &nbsp;. The reasons make more sense for long text, but I think this should be consistent.
Naucse should ultimately be a site for collaboratively written text. And just like a book has an author and an editor, the people writing (and reading!) the text shouldn't need to concern themselves with typography if they don't want to. If you don't have your editor set up to highlight whitespace, you probably don't care, and that's okay. But having &nbsp; everywhere makes the text is unreadable, and I do want people to be able read the source – it makes little contributions easier.
That all could be „solved“ by an automatic Texy!-like system, but I think keeping things explicit is better. What I'd like to set up, eventually, is a linter – something that flags mistakes on pull requests, so either the author or the person merging it can fix these little mistakes. I don't want a typographical Autocomplete.

About the a and i: this is not a paragraph of running text. I wouldn't mind putting non-breaking spaces even between long words if that would make it look better as a whole.

Copy link
Member

Choose a reason for hiding this comment

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

@encukou That makes sense. This context is different.

About a and i, sure, I do that too with different words where it's not mandatory. I just wanted to point out it isn't (without asking what the reason was, shame on me).

@encukou encukou merged commit 2d910a6 into pyvec:master Mar 9, 2017
@Krejdom Krejdom deleted the chrome-fix branch March 23, 2017 12:16
encukou pushed a commit that referenced this pull request Dec 29, 2019
[Ostrava] Feedback for lesson about inheritance
messa pushed a commit to messa/naucse.python.cz that referenced this pull request Mar 5, 2020
* Fix: title attribute on img tag (pyvec#49)

* Remove course definition

* Drobné úpravy

Reformulace, překlepy, ...

Co-authored-by: Jan Pipek <jan.pipek@gmail.com>
Co-authored-by: Lumír 'Frenzy' Balhar <frenzy.madness@gmail.com>
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