-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement 1356 #1572
Implement 1356 #1572
Conversation
LGTM |
@@ -2279,6 +2279,7 @@ Changes_the_first_letter_of_all_words_to_capital_case_and_the_remaining_letters_ | |||
Cleans_up_LaTeX_code.=Räumt_LaTeX-Code_auf. | |||
|
|||
Converts_HTML_code_to_LaTeX_code.=Konvertiere_HTML-Code_in_LaTeX-Code. | |||
Converts_HTML_code_to_Unicode.= Konvertiere_HTML-Code_in_Unicode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a space after the = sign?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed! Thanks for spotting!
LGTM 👍 |
|
||
@Before | ||
public void setUp() throws Exception { | ||
Globals.prefs = JabRefPreferences.getInstance(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is best practice to init the class under test in the @Before
method so that every test method gets a fresh class, i.e move the = new HtmlToUnicodeFormatter
part to this method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are correct. That comes from a copy paste from the other formatter tests, which all share this problem. I will fix all of them in this PR.
I have only a few small remarks. 👍 for merge in general |
# Conflicts: # CHANGELOG.md
Implements #1356 and provides a formatter that converts HTML to Unicode (converting characters and eliminating tags)