lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev [PATCH 2.8.3.dev6] yet another fix for justification code


From: Vlad Harchev
Subject: lynx-dev [PATCH 2.8.3.dev6] yet another fix for justification code
Date: Fri, 13 Aug 1999 07:23:58 +0500 (SAMST)

 Seems this is my last patch today (but I don't guarantee this :)

 Best regards,
  -Vlad

diff -ru old/src/GridText.c fixed/src/GridText.c
--- old/src/GridText.c  Fri Aug 13 07:08:31 1999
+++ fixed/src/GridText.c        Fri Aug 13 07:13:22 1999
@@ -2884,6 +2884,13 @@
        } else { /* (ht_num_runs==1) */
            /* keep maintaining 'last_anchor_of_previous_line' */
            TextAnchor* a2 = last_anchor_of_previous_line;
+           if (justify_start_position) {
+               char* p=previous->data;
+               for(;p<previous->data+justify_start_position;++p)
+                   *p = (*p == HT_NON_BREAK_SPACE ? ' ' : *p);
+               
+           };
+           
            if (!a2)
                a2 = text->first_anchor;
            else if (a2 == text->last_anchor)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]