#214 Space characters always indent on paragraph reformat

closed
nobody
5
2008-10-24
2007-12-27
jeff_h
No

Using joe 3.5 built on Cygwin with the cygbuild script... Space characters (ascii 9 and 32) always indent on paragraph reformat (^K J). This is a serious nuisance when editing plain text files that have indented paragraphs. Narratives (eg. fiction stories) that contain dialogue usually have many one-line paragraphs. If paragraph reformat wraps any of those to a second line, the second line will also be indented. I have not found a way to turn this behavior off ([un]setting 'cpara', for example, has no effect)-- there seems to be no work-around, other than removing all indentation. Note that this problem seems to affect paragraph reformat only, and not line wrap while entering text.

Discussion

  • jeff_h
    jeff_h
    2007-12-27

    Logged In: YES
    user_id=1958347
    Originator: YES

    Clarification: by "indented paragraphs" I mean the standard paragraphing style where the first line of each paragraph is indented with a tab (9) or spaces (32). This problem shows itself regardless of whether paragraphs are also separated with blank lines or not.

     
  • jeff_h
    jeff_h
    2007-12-27

    small text file to illustrate the problem

     
    Attachments
  • jeff_h
    jeff_h
    2007-12-27

    Logged In: YES
    user_id=1958347
    Originator: YES

    File Added: example

     
  • jeff_h
    jeff_h
    2007-12-29

    Logged In: YES
    user_id=1958347
    Originator: YES

    Terminal: Cygwin RXVT in native mode (no X11 server)

    Options:
    Global options:

    -asis
    -force
    -lightoff
    -keepup
    -pg 1
    -backpath ~/joe_backups
    -nonotice
    -noxon
    -usetabs
    -assume_color
    -assume_256color
    -guess_non_utf8
    -guess_crlf
    -guess_indent
    -menu_above
    -transpose
    -menu_explorer
    -menu_jump
    -autoswap
    -joe_state

    Default local options:

    -highlight
    -indentc 32
    -istep 2
    -cpara (empty set to turn this feature off)

    Local options:

    DOS/Windows text file
    *.txt
    -wordwrap
    -rmargin 73
    -french
    -crlf
    -cpara

     
  • Joe Allen
    Joe Allen
    2008-10-24

    This is now fixed in CVS. When you reformat a single-line paragraph, the second line is indented only if autoindent is enabled, otherwise it's indented to the left margin.

    I think it broke in JOE 3.5 because I was trying to get it to do a better job of formatting paragraphs in programming language comment blocks.

     
  • Joe Allen
    Joe Allen
    2008-10-24

    • status: open --> closed
     
  • Joe Allen
    Joe Allen
    2008-10-24

    This is now fixed in CVS. When you reformat a single-line paragraph, the second line is indented only if autoindent is enabled, otherwise it's indented to the left margin.

    I think it broke in JOE 3.5 because I was trying to get it to do a better job of formatting paragraphs in programming language comment blocks.