mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 04:41:21 +03:00
nano.c:do_justify() - Don't continue to justify string if it's indented more (quoting wise) than the beginning of the justification
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1104 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
d4fa0d3904
commit
46c1b9e344
@ -57,6 +57,9 @@ CVS code -
|
||||
justify_format(), do_justify()
|
||||
- Various fixes for starting blank spaces, spaces after
|
||||
punctuation, & segfault with quoting strings (David Benbennick).
|
||||
do_justify()
|
||||
- Don't continue to justify string if it's indented more
|
||||
(quoting wise) than the beginning of the justification.
|
||||
help_init()
|
||||
- Added message re: having multiple blank buffers (DLR).
|
||||
main()
|
||||
|
3
nano.c
3
nano.c
@ -2307,6 +2307,9 @@ int do_justify(void)
|
||||
/* Put the whole paragraph into one big line. */
|
||||
while (current->next && !isspace((int) current->next->data[0])
|
||||
&& !strncmp(current->next->data, samecheck->data, qdepth)
|
||||
|
||||
/* Don't continue if current->next is indented more! */
|
||||
&& strncmp(¤t->next->data[qdepth], quotestr, strlen(quotestr))
|
||||
&& !empty_line(¤t->next->data[qdepth])) {
|
||||
filestruct *tmpnode = current->next;
|
||||
int len = strlen(current->data);
|
||||
|
Loading…
Reference in New Issue
Block a user