1<?php
2// $Header: /cvsroot/html2ps/xhtml.lists.inc.php,v 1.3 2005/04/27 16:27:46 Konstantin Exp $
3
4function process_li(&$sample_html, $offset) {
5  return autoclose_tag($sample_html, $offset, "(ul|ol|li|/li|/ul|/ol)",
6                       array("ul" => "process_ul",
7                             "ol" => "process_ol"),
8                       "/li");
9};
10
11function process_ol(&$sample_html, $offset) {
12  return autoclose_tag($sample_html, $offset, "(li|/ol)",
13                       array("li" => "process_li"),
14                       "/ol");
15};
16
17function process_ul(&$sample_html, $offset) {
18  return autoclose_tag($sample_html, $offset, "(li|/ul)",
19                       array("li" => "process_li"),
20                       "/ul");
21};
22
23function process_lists(&$sample_html, $offset) {
24  return autoclose_tag($sample_html, $offset, "(ul|ol)",
25                       array("ul" => "process_ul",
26                             "ol" => "process_ol"),
27                       "");
28};
29
30?>