[pinpoint] Fix skipping # characters that aren't at the beginning of the line
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pinpoint] Fix skipping # characters that aren't at the beginning of the line
- Date: Fri, 20 May 2011 13:05:47 +0000 (UTC)
commit dbab269ff908b5a6e6f154ba67b382d292d7c636
Author: Neil Roberts <neil linux intel com>
Date: Fri May 20 13:18:59 2011 +0100
Fix skipping # characters that aren't at the beginning of the line
Previously the case statement for handling '#' characters did nothing
if the character wasn't at the beginning of the line which meant it
would get stripped. Now it flows through to the default handler which
will append it.
pinpoint.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/pinpoint.c b/pinpoint.c
index cb6dc81..5d78a1b 100644
--- a/pinpoint.c
+++ b/pinpoint.c
@@ -586,9 +586,12 @@ pp_parse_slides (PinPointRenderer *renderer,
{
char *end = strchr (p, '\n');
if (end)
- p = end;
+ {
+ p = end;
+ break;
+ }
}
- break;
+ /* flow through */
default:
startofline = FALSE;
g_string_append_c (slide_str, *p);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]