[BACK]Return to term_ascii.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/term_ascii.c between version 1.26 and 1.28

version 1.26, 2014/07/27 21:52:16 version 1.28, 2014/08/10 23:54:41
Line 15 
Line 15 
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF   * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.   * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */   */
 #ifdef HAVE_CONFIG_H  
 #include "config.h"  #include "config.h"
 #endif  
   
 #include <sys/types.h>  #include <sys/types.h>
   
 #ifdef USE_WCHAR  #ifdef USE_WCHAR
 # include <locale.h>  #include <locale.h>
 #endif  #endif
 #include <stdint.h>  #include <stdint.h>
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <unistd.h>  #include <unistd.h>
 #ifdef USE_WCHAR  #ifdef USE_WCHAR
 # include <wchar.h>  #include <wchar.h>
 #endif  #endif
   
 #include "mandoc.h"  #include "mandoc.h"
Line 238  ascii_hspan(const struct termp *p, const struct roffsu
Line 236  ascii_hspan(const struct termp *p, const struct roffsu
   
         switch (su->unit) {          switch (su->unit) {
         case SCALE_CM:          case SCALE_CM:
                 r = 4 * su->scale;                  r = su->scale * 4.0;
                 break;                  break;
         case SCALE_IN:          case SCALE_IN:
                 r = 10 * su->scale;                  r = su->scale * 10.0;
                 break;                  break;
         case SCALE_PC:          case SCALE_PC:
                 r = (10 * su->scale) / 6;                  r = (su->scale * 10.0) / 6.0;
                 break;                  break;
         case SCALE_PT:          case SCALE_PT:
                 r = (10 * su->scale) / 72;                  r = (su->scale * 10.0) / 72.0;
                 break;                  break;
         case SCALE_MM:          case SCALE_MM:
                 r = su->scale / 1000;                  r = su->scale / 1000.0;
                 break;                  break;
         case SCALE_VS:          case SCALE_VS:
                 r = su->scale * 2 - 1;                  r = su->scale * 2.0 - 1.0;
                 break;                  break;
         default:          default:
                 r = su->scale;                  r = su->scale;

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.28

CVSweb