Ignore:
Timestamp:
Aug 2, 2000, 4:58:40 PM (25 years ago)
Author:
bird
Message:

Added the CVS Id keyword.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/riched32/text-writer.c

    r3515 r3922  
     1/* $Id: text-writer.c,v 1.2 2000-08-02 14:58:40 bird Exp $ */
    12/*
    23 * text-writer -- RTF-to-text translation writer code.
     
    5859int RTFToBuffer(char* pBuffer, int nBufferSize)
    5960{
    60    
    61    /* check if the buffer is big enough to hold all characters  */   
     61
     62   /* check if the buffer is big enough to hold all characters  */
    6263   /* we require one more for the '\0'                          */
    63    
    64    
     64
     65
    6566   if(nBufferSize < charlist.nCount + 1) {
    6667        return charlist.nCount + CHARLIST_CountChar(&charlist, '\n') + 1;
    6768   }
    68  
     69
    6970   while(charlist.nCount)
    7071   {
     
    7475         *pBuffer = '\r';
    7576         pBuffer++;
    76          *pBuffer = '\n'; 
     77         *pBuffer = '\n';
    7778       }
    7879       pBuffer++;
     
    8081   *pBuffer = '\0';
    8182
    82    return 0;   
     83   return 0;
    8384}
    8485
     
    243244void PutStdChar (int stdCode)
    244245{
    245  
     246
    246247  char  *oStr = (char *) NULL;
    247248  char  buf[rtfBufSiz];
    248  
     249
    249250/*      if (stdCode == rtfSC_nothing)
    250251                RTFPanic ("Unknown character code, logic error\n");
    251 */             
     252*/
    252253        oStr = outMap[stdCode];
    253254        if (oStr == (char *) NULL)      /* no output sequence in map */
Note: See TracChangeset for help on using the changeset viewer.