Ver código fonte

* Fixed old bugs I introduced in the exporters.

* Fixed exporter headers to make Doxygen happy.
tags/v0.99.beta14
Sam Hocevar sam 18 anos atrás
pai
commit
cd0e8f7861
5 arquivos alterados com 9 adições e 9 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

@@ -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 Ver arquivo

@@ -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 Ver arquivo

@@ -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 Ver arquivo

@@ -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>


Carregando…
Cancelar
Salvar