Browse Source

* Fixed old bugs I introduced in the exporters.

* Fixed exporter headers to make Doxygen happy.
tags/v0.99.beta14
Sam Hocevar sam 18 years ago
parent
commit
cd0e8f7861
5 changed files with 9 additions and 9 deletions
  1. +3
    -3
      cucul/export_ansi.c
  2. +3
    -3
      cucul/export_html.c
  3. +1
    -1
      cucul/export_irc.c
  4. +1
    -1
      cucul/export_ps.c
  5. +1
    -1
      cucul/export_svg.c

+ 3
- 3
cucul/export_ansi.c View File

@@ -9,7 +9,7 @@
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/

/** \file export.c
/** \file export_ansi.c
* \version \$Id$
* \author Sam Hocevar <sam@zoy.org>
* \author Jean-Yves Lamoureux <jylam@lnxscene.org>
@@ -66,8 +66,8 @@ void _cucul_get_ansi(cucul_t *qq, struct cucul_export *ex)

for(x = 0; x < qq->width; x++)
{
uint8_t fg = _cucul_argb32_to_ansi4fg(lineattr[x]);
uint8_t bg = _cucul_argb32_to_ansi4bg(lineattr[x]);
uint8_t fg = palette[_cucul_argb32_to_ansi4fg(lineattr[x])];
uint8_t bg = palette[_cucul_argb32_to_ansi4bg(lineattr[x])];
uint32_t c = linechar[x];

if(fg != prevfg || bg != prevbg)


+ 3
- 3
cucul/export_html.c View File

@@ -9,7 +9,7 @@
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/

/** \file export.c
/** \file export_html.c
* \version \$Id$
* \author Sam Hocevar <sam@zoy.org>
* \author Jean-Yves Lamoureux <jylam@lnxscene.org>
@@ -158,13 +158,13 @@ void _cucul_get_html3(cucul_t *qq, struct cucul_export *ex)
len++;

cur += sprintf(cur, "<td bgcolor=#%06x",
_cucul_argb32_to_ansi4bg(lineattr[x]));
palette[_cucul_argb32_to_ansi4bg(lineattr[x])]);

if(len > 1)
cur += sprintf(cur, " colspan=%d", len);

cur += sprintf(cur, "><font color=#%06x>",
_cucul_argb32_to_ansi4fg(lineattr[x]));
palette[_cucul_argb32_to_ansi4fg(lineattr[x])]);

for(i = 0; i < len; i++)
{


+ 1
- 1
cucul/export_irc.c View File

@@ -9,7 +9,7 @@
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/

/** \file export.c
/** \file export_irc.c
* \version \$Id$
* \author Sam Hocevar <sam@zoy.org>
* \author Jean-Yves Lamoureux <jylam@lnxscene.org>


+ 1
- 1
cucul/export_ps.c View File

@@ -9,7 +9,7 @@
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/

/** \file export.c
/** \file export_ps.c
* \version \$Id$
* \author Sam Hocevar <sam@zoy.org>
* \author Jean-Yves Lamoureux <jylam@lnxscene.org>


+ 1
- 1
cucul/export_svg.c View File

@@ -9,7 +9,7 @@
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/

/** \file export.c
/** \file export_svg.c
* \version \$Id$
* \author Sam Hocevar <sam@zoy.org>
* \author Jean-Yves Lamoureux <jylam@lnxscene.org>


Loading…
Cancel
Save