Permalink
Browse files

<div> fix continues

  • Loading branch information...
1 parent 91e9005 commit c33ef6ca347a8da9b2c1935b54c448cfa61b9ae1 @ivkosh committed Jan 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/rdbl.erl
View
@@ -134,7 +134,7 @@ simplify_page(Body, Ctx, DefaultContentType) ->
case Out of % if content body starts from <h1> we assume page has its own title in body, keeping it
[{<<"h1">>, _, _}|_] ->
Out2 = Out;
- [{<<"div">>, _, {<<"h1">>, _, _}}|_] ->
+ [{<<"div">>, _, [{<<"h1">>, _, _}|_]}|_] ->
Out2 = Out;
_ ->
Out2 = [{<<"h1">>, [], TitleStr} | Out] % adding page <title> in any other case as <h1>

0 comments on commit c33ef6c

Please sign in to comment.