Skip to content

Commit

Permalink
whitespace bug
Browse files Browse the repository at this point in the history
  • Loading branch information
massemanet committed May 14, 2010
1 parent f6d380b commit 6e39fe2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
*~
*beam
4 changes: 2 additions & 2 deletions src/trane.erl
Expand Up @@ -87,7 +87,7 @@ tz(nil,[_|Str]) -> {nil,Str};
tz({tag,""},"!--"++Str) -> {{comm,""},Str};
tz({tag,""},"!"++Str) -> {{excl,""},ws(Str)};
tz({tag,""},"?"++Str) -> {{que,""},ws(Str)};
tz({tag,""},"/"++Str) -> {{end_tag,""},Str};
tz({tag,""},"/"++Str) -> {{end_tag,""},ws(Str)};
tz({tag,Tag},Str) when ?endv(Str) -> {{attr,"",{Tag,[]}},ws(Str)};
tz({tag,Tag},[X|Str]) -> {{tag,Tag++[X]},Str};

Expand Down Expand Up @@ -168,7 +168,7 @@ unit() ->
[{exclamation,"doctype bla"},
{tag,"p",[{"a","b"},{"c","d"}]},
{end_tag,"p"}]},
{"<head><B>< p><p ></z></b></x>",
{"<head><B>< p><p ></z></ b></x>",
[{tag,"head",[]},
{tag,"b",[]},
{tag,"p",[]},
Expand Down

0 comments on commit 6e39fe2

Please sign in to comment.