Skip to content

Commit

Permalink
Placate Rubocop
Browse files Browse the repository at this point in the history
Remove redundant whitespace

Change a regexp containing only a regular string to a string constant
  • Loading branch information
creideiki committed Nov 21, 2023
1 parent 8fc6396 commit 623c440
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/fimfic2pdf/ao3/transformer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module AO3
# Transforms AO3 XHTML documents to LaTeX
module Transformer
def read_title_and_author
unless @conf['story']['title'] and @conf['story']['author'] # rubocop:disable Style/GuardClause
unless @conf['story']['title'] and @conf['story']['author'] # rubocop:disable Style/GuardClause
@logger.debug "Not already parsed, reading from file #{@conf['story']['metadata']}"
doc = Nokogiri::XML(File.open(@conf['story']['metadata']))
doc.remove_namespaces!
Expand Down
2 changes: 1 addition & 1 deletion lib/fimfic2pdf/transformer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def prettify_single_quotes(text)

def visit_text(node, file)
text = unicodify node.text
text.gsub! /\n/, ' '
text.gsub! "\n", ' '
if /^ *-{4,} *$/.match text
visit_hr(node, file)
else
Expand Down

0 comments on commit 623c440

Please sign in to comment.