Skip to content

Commit

Permalink
Direktiv with only h1:s (no h2:s) don't mistakenly parse regular para…
Browse files Browse the repository at this point in the history
…graphs as h2:s
  • Loading branch information
staffanm committed May 27, 2017
1 parent d93f5f3 commit 499d868
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ferenda/sources/legal/se/direktiv.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ def analyze_styles(self, styles):
h2 = None
else:
(ts, dummy, h1, h2) = styles
if h2 == ds: # what we thought was h2 was really the
# default style, meaning no h2:s are used in
# the doc
h2 = None

styledefs['title'] = self.fontdict(ts)
styledefs['h1'] = self.fontdict(h1)
Expand Down

0 comments on commit 499d868

Please sign in to comment.