Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/etox
Dir : e17/libs/etox/src
Modified Files:
etox.c etox_line.c
Log Message:
Only append \n to lines when appropriate.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/src/etox.c,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -3 -r1.78 -r1.79
--- etox.c 17 May 2004 20:12:42 -0000 1.78
+++ etox.c 18 May 2004 20:36:49 -0000 1.79
@@ -516,6 +516,13 @@
* string.
* Is there a better way to do this?
*/
+ if (l->next) {
+ Etox_Line * nline = l->next->data;
+ if (!(nline->flags & ETOX_LINE_WRAPPED)) {
+ strcat(temp, "\n");
+ temp++;
+ }
+ }
temp += line->length;
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/src/etox_line.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -3 -r1.36 -r1.37
--- etox_line.c 14 May 2004 04:00:40 -0000 1.36
+++ etox_line.c 18 May 2004 20:36:49 -0000 1.37
@@ -386,12 +386,6 @@
}
line->length = sum;
- /*
- * FIXME: this shouldn't happen if the next line is a wrapped line
- * Maybe we should just let whoever calls this func add \n's where
- * necessary. However, we need to be careful about the line length.
- */
- strcat(buf, "\n");
}
int
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs