-
Notifications
You must be signed in to change notification settings - Fork 683
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
text() supresses leading whitespace #89
Comments
Not a bug. Intentional behavior change by Daniel. See: |
Ok, but how i can render this indentation:
:indent_paragraphs property couldn`t help me with this. |
Use non-breaking space: http://en.wikipedia.org/wiki/Non-breaking_space |
Here's an example of how to do this using non-breaking spaces (here to display some code):
|
@thbar your example breaks if you have multiple newlines. Use this instead:
|
content = content.gsub(/^([^\S\r\n]+)/m) { |m| "\xC2\xA0" * m.size }
Then downloaded a font and it works. |
Contrast to:
The text was updated successfully, but these errors were encountered: