1<?php
2// $Header: /cvsroot/html2ps/ps.utils.inc.php,v 1.10 2005/11/12 06:29:23 Konstantin Exp $
3
4function trim_ps_comments($data) {
5  $data = preg_replace("/(?<!\\\\)%.*/","",$data);
6  return preg_replace("/ +$/","",$data);
7}
8
9function format_ps_color($color) {
10  return sprintf("%.3f %.3f %.3f",$color[0]/255,$color[1]/255,$color[2]/255);
11}
12?>