]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/text-interface.cc
Release: update news.
[lilypond.git] / lily / text-interface.cc
index c51e925b9d9690cb51c03e0a47b5e46215e279c9..862e7af0b52405fdd1e0d9de0c5be7699f492231 100644 (file)
@@ -19,7 +19,9 @@
 */
 
 #include "text-interface.hh"
+#include "skyline-pair.hh"
 
+#include "lookup.hh"
 #include "config.hh"
 #include "font-interface.hh"
 #include "grob.hh"
@@ -50,15 +52,15 @@ replace_special_characters (string &str, SCM props)
     {
       /* Don't match in mid-UTF-8 */
       if ((str[i] & 0xc0) == 0x80)
-       continue;
+        continue;
       for (vsize j = max_length + 1; j--;)
         {
-         if (j > str.size () - i)
-           continue;
+          if (j > str.size () - i)
+            continue;
           string dummy = str.substr (i, j);
           SCM ligature = ly_assoc_get (ly_string2scm (dummy),
-                                      replacement_alist, SCM_BOOL_F);
-         if (scm_is_true (ligature))
+                                       replacement_alist, SCM_BOOL_F);
+          if (scm_is_true (ligature))
             str.replace (i, j, robust_scm2string (ligature, ""));
         }
     }
@@ -151,7 +153,7 @@ Text_interface::interpret_markup (SCM layout_smob, SCM props, SCM markup)
     }
   else
     {
-      programming_error ("Object is not a markup. ");
+      programming_error ("Object is not a markup.");
       scm_puts ("This object should be a markup: ", scm_current_error_port ());
       scm_display (markup, scm_current_error_port ());
       scm_puts ("\n", scm_current_error_port ());