[2557] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[PATCH 0/3] Expand fmtext tabs at various points in processing

daemon@ATHENA.MIT.EDU (David Benjamin)
Sun Jul 25 20:19:40 2010

From: David Benjamin <davidben@MIT.EDU>
To: barnowl-dev@mit.edu
Date: Sun, 25 Jul 2010 17:19:29 -0700

This is intended as a partial fix to #90. We expand tabs just after we get the
style output and just before owl_fmtext_truncate_cols.

The first expansion is so that, should the style annoyingly give us tabs, it
needn't do so with OWL_TAB in mind. The second expansion is still needed
because a :pexec may still output tabs. A complete fix would probably add a
third (sigh) tab expansion in the default style, as it adds a four-space indent
of it's own...

Diff applies on top of patchset I send out a few hours ago. It also lives here:

git://github.com/davidben/barnowl.git expand-tabs

David Benjamin (3):
  Add owl_fmtext_expand_tabs with test case
  Expand tabs before applying OWL_TAB
  Expand tabs first in owl_fmtext_truncate_cols

 fmtext.c |   79 +++++++++++++++++++++++++++++++++++++++++++++++++++----------
 owl.h    |    2 +
 style.c  |    8 +++++-
 tester.c |   51 ++++++++++++++++++++++++++++++++++++++++
 text.c   |    2 -
 5 files changed, 126 insertions(+), 16 deletions(-)

-- 
1.7.2.rc2.1.gaace1


home help back first fref pref prev next nref lref last post