Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

<div> fix continues

  • Loading branch information...
commit c33ef6ca347a8da9b2c1935b54c448cfa61b9ae1 1 parent 91e9005
@ivkosh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/rdbl.erl
View
2  src/rdbl.erl
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.