Skip to content

Commit

Permalink
fix: regex of indent
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Jan 16, 2020
1 parent e4d4fd8 commit d49e3a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/components/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@
{{- end -}}
{{- $Content := .Scratch.Get "Content" -}}
{{- if not $enableDropCapAfterHr -}}
{{- $regex := `((</h[1-6]>|<hr>|<hr />)\n<p)(>)[^<]` -}}
{{- $regex := `((</h[1-6]>|<hr>|<hr />)\n<p)(>[^<])` -}}
{{- $.Scratch.Set "regex" $regex -}}
{{- else -}}
{{- $regex := `((</h[1-6]>)\n<p)(>)[^<]` -}}
{{- $regex := `((</h[1-6]>)\n<p)(>[^<])` -}}
{{- $.Scratch.Set "regex" $regex -}}
{{- end -}}
{{- $regex := .Scratch.Get "regex" -}}
Expand Down

0 comments on commit d49e3a6

Please sign in to comment.