Skip to content

Commit

Permalink
Merge pull request #3177 from benwbrum/3172-double-braces-ocr
Browse files Browse the repository at this point in the history
Fix #3172 by reducing double square braces in IA ocr text
  • Loading branch information
sylvieed committed Jun 14, 2022
2 parents 013e4f3 + e264a56 commit 87a6e37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/ia_work.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ def ocr_line_to_text(line)
# clean any angle braces -- this source won't be HTML
title.gsub!("<", "&lt;")
title.gsub!(">", "&gt;")
title.gsub!(/\[\[+/, "[") #this

title
end
Expand Down

0 comments on commit 87a6e37

Please sign in to comment.