groff-commit
[Top][All Lists]
Advanced

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

[Groff-commit] groff ChangeLog src/devices/grotty/tty.cpp


From: Werner LEMBERG
Subject: [Groff-commit] groff ChangeLog src/devices/grotty/tty.cpp
Date: Thu, 20 Jan 2011 07:13:58 +0000

CVSROOT:        /cvsroot/groff
Module name:    groff
Changes by:     Werner LEMBERG <wl>     11/01/20 07:13:57

Modified files:
        .              : ChangeLog 
        src/devices/grotty: tty.cpp 

Log message:
        Fix handling of wide characters in no-SGR mode.
        
        * src/devices/grotty/tty.cpp (tty_printer::make_underline): Only
        emit a single backspace in no-SGR mode.  less (at least) backspaces
        over a character at a time.
        (tty_printer::make_bold): Likewise.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/ChangeLog?cvsroot=groff&r1=1.1276&r2=1.1277
http://cvs.savannah.gnu.org/viewcvs/groff/src/devices/grotty/tty.cpp?cvsroot=groff&r1=1.23&r2=1.24

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/groff/groff/ChangeLog,v
retrieving revision 1.1276
retrieving revision 1.1277
diff -u -b -r1.1276 -r1.1277
--- ChangeLog   19 Jan 2011 05:42:15 -0000      1.1276
+++ ChangeLog   20 Jan 2011 07:13:57 -0000      1.1277
@@ -1,3 +1,12 @@
+2011-01-20  Colin Watson  <address@hidden>
+
+       Fix handling of wide characters in no-SGR mode.
+
+       * src/devices/grotty/tty.cpp (tty_printer::make_underline): Only
+       emit a single backspace in no-SGR mode.  less (at least) backspaces
+       over a character at a time.
+       (tty_printer::make_bold): Likewise.
+
 2011-01-19  Werner LEMBERG  <address@hidden>
 
        * src/preproc/pic/pic.man: Add pic manual to `SEE ALSO' section.
@@ -22,7 +31,8 @@
 Version 1.21 released
 =====================
 
-       * NEWS, REVISION, VERSION, doc/groff.texinfo, doc/webpage.ms: Updated.
+       * NEWS, REVISION, VERSION, doc/groff.texinfo, doc/webpage.ms:
+       Updated.
        * aclocal.m4, configure: Regenerated.
 
 2010-12-31  Werner LEMBERG  <address@hidden>
@@ -791,3 +801,15 @@
        * src/devices/grops/ps.cpp (ps_printer::special): Check color state
        before doing a PS special and flush buffer.
        Update called functions.
+
+Copyright 2009-2011
+  Free Software Foundation, Inc.
+
+Copying and distribution of this file, with or without modification,
+are permitted in any medium without royalty provided the copyright
+notice and this notice are preserved.
+
+Local Variables:
+version-control: never
+coding: latin-1
+End:

Index: src/devices/grotty/tty.cpp
===================================================================
RCS file: /cvsroot/groff/groff/src/devices/grotty/tty.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -b -r1.23 -r1.24
--- src/devices/grotty/tty.cpp  13 Dec 2010 17:42:28 -0000      1.23
+++ src/devices/grotty/tty.cpp  20 Jan 2011 07:13:57 -0000      1.24
@@ -1,6 +1,6 @@
 // -*- C++ -*-
-/* Copyright (C) 1989-2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
-                 2010
+/* Copyright (C) 1989-2000, 2001, 2002, 2003, 2004, 2005, 2006,
+                 2009-2011
    Free Software Foundation, Inc.
      Written by James Clark (address@hidden)
 
@@ -311,10 +311,7 @@
     if (!w)
       warning("can't underline zero-width character");
     else {
-      int n = w / font::hor;
-      for (int i = 0; i < n; i++)
        putchar('_');
-      for (int j = 0; j < n; j++)
        putchar('\b');
     }
   }
@@ -337,9 +334,7 @@
     if (!w)
       warning("can't print zero-width character in bold");
     else {
-      int n = w / font::hor;
       put_char(c);
-      for (int i = 0; i < n; i++)
        putchar('\b');
     }
   }



reply via email to

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