Skip to content
Browse files

Merge pull request #56 from philips/master

fixup whitespace issues
  • Loading branch information...
2 parents be7f3c4 + 12028f0 commit bfb6acf3680503f5cdc7101715fa6de7ba16d36e @bbatsov bbatsov committed Oct 5, 2011
Showing with 13 additions and 12 deletions.
  1. +1 −0 .gitattributes
  2. +12 −12 README.md
View
1 .gitattributes
@@ -0,0 +1 @@
+*.md whitespace=trailing-space,tab-in-indent
View
24 README.md
@@ -184,11 +184,11 @@ wkhtmltopdf can be installed in one of two methods
* Vim users might want to put this in their config
(e.g. `~/.vimrc`):
-
+
```
set textwidth=80
```
-
+
* Textmate
* Avoid trailing whitespace.
@@ -205,9 +205,9 @@ wkhtmltopdf can be installed in one of two methods
```
autocmd BufWritePre * :%s/\s\+$//e
```
-
+
Or if you don't want vim to touch possibly vital space based files, use:
-
+
```
set listchars+=trail:░
```
@@ -706,15 +706,15 @@ in *Ruby* now, not in *Python*.
Instead, use `String#<<`. Concatenation mutates the string instance in-place
and is always faster than `String#+`, which creates a bunch of new string objects.
- ```Ruby
- # good and also fast
- html = ''
- html << '<h1>Page title</h1>'
+ ```Ruby
+ # good and also fast
+ html = ''
+ html << '<h1>Page title</h1>'
- paragraphs.each do |paragraph|
- html << "<p>#{paragraph}</p>"
- end
- ```
+ paragraphs.each do |paragraph|
+ html << "<p>#{paragraph}</p>"
+ end
+ ```
## Percent Literals

0 comments on commit bfb6acf

Please sign in to comment.
Something went wrong with that request. Please try again.