~ubuntu-branches/ubuntu/precise/gnupg2/precise-proposed

« back to all changes in this revision

Viewing changes to doc/yat2m.c

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2009-03-08 22:46:47 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090308224647-gq17gatcl71lrc2k
Tags: 2.0.11-1
* New upstream release. (Closes: #496663)
* debian/control: Make the description a little more distinctive than
  gnupg v1's. Thanks Jari Aalto. (Closes: #496323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* yat2m.c - Yet Another Texi 2 Man converter
2
2
 *      Copyright (C) 2005 g10 Code GmbH
3
 
 *      Copyright (C) 2006 2006 Free Software Foundation, Inc.
 
3
 *      Copyright (C) 2006, 2008 Free Software Foundation, Inc.
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or modify
6
6
 * it under the terms of the GNU General Public License as published by
87
87
 
88
88
 
89
89
#define PGM "yat2m"
90
 
#define VERSION "0.5"
 
90
#define VERSION "1.0"
91
91
 
92
92
/* The maximum length of a line including the linefeed and one extra
93
93
   character. */
414
414
{
415
415
  char *name, *p;
416
416
 
 
417
  fputs (".\\\" Created from Texinfo source by yat2m " VERSION "\n", fp);
 
418
 
417
419
  name = ascii_strupr (xstrdup (thepage.name));
418
420
  p = strrchr (name, '.');
419
421
  if (!p || !p[1])
449
451
    { "code",    0, "\\fB", "\\fR" },
450
452
    { "sc",      0, "\\fB", "\\fR" },
451
453
    { "var",     0, "\\fI", "\\fR" },
452
 
    { "samp",    0, "'",  "'"  },
453
 
    { "file",    0, "`\\fI","\\fR'" }, 
454
 
    { "env",     0, "`\\fI","\\fR'" }, 
 
454
    { "samp",    0, "\\(aq", "\\(aq"  },
 
455
    { "file",    0, "\\(oq\\fI","\\fR\\(cq" }, 
 
456
    { "env",     0, "\\(oq\\fI","\\fR\\(cq" }, 
455
457
    { "acronym", 0 },
456
458
    { "dfn",     0 },
457
459
    { "option",  0, "\\fB", "\\fR"   },
675
677
            }
676
678
          *eol_action = 0;
677
679
        }
 
680
      else if (*s == '\\')
 
681
        fputs ("\\\\", fp);
678
682
      else
679
683
        putc (*s, fp);
680
684
    }