OSDN Git Service

Change hex 0A in string compare to \n to avoid compile issues.
authorRandy Baumgarte <randy@fbn.cx>
Tue, 11 Oct 2011 11:52:46 +0000 (07:52 -0400)
committerRandy Baumgarte <randy@fbn.cx>
Tue, 11 Oct 2011 11:52:46 +0000 (07:52 -0400)
src/cx/fbn/nevernote/gui/BrowserWindow.java

index 2425fbb..8f0eef7 100644 (file)
@@ -1518,7 +1518,7 @@ public class BrowserWindow extends QWidget {
        public void editLatex(String guid) {\r
                logger.log(logger.EXTREME, "Inserting latex");\r
                String text = browser.selectedText();\r
        public void editLatex(String guid) {\r
                logger.log(logger.EXTREME, "Inserting latex");\r
                String text = browser.selectedText();\r
-               if (text.trim().equalsIgnoreCase(" ") || text.trim().equalsIgnoreCase("")) {\r
+               if (text.trim().equalsIgnoreCase("\n") || text.trim().equalsIgnoreCase("")) {\r
                        InsertLatexImage dialog = new InsertLatexImage();\r
                        if (guid != null) {\r
                                String formula = conn.getNoteTable().noteResourceTable.getNoteSourceUrl(guid).replace("http://latex.codecogs.com/gif.latex?", "");\r
                        InsertLatexImage dialog = new InsertLatexImage();\r
                        if (guid != null) {\r
                                String formula = conn.getNoteTable().noteResourceTable.getNoteSourceUrl(guid).replace("http://latex.codecogs.com/gif.latex?", "");\r