Subversion Repositories filter_foundry

Rev

Rev 375 | Rev 465 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 375 Rev 378
Line 1... Line 1...
1
#!/usr/bin/php
1
#!/usr/bin/php
2
<?php
2
<?php
3
 
3
 
-
 
4
/*
-
 
5
    This file is part of "Filter Foundry", a filter plugin for Adobe Photoshop
-
 
6
    Copyright (C) 2003-2009 Toby Thain, toby@telegraphics.com.au
-
 
7
    Copyright (C) 2018-2021 Daniel Marschall, ViaThinkSoft
-
 
8
 
-
 
9
    This program is free software; you can redistribute it and/or modify
-
 
10
    it under the terms of the GNU General Public License as published by
-
 
11
    the Free Software Foundation; either version 2 of the License, or
-
 
12
    (at your option) any later version.
-
 
13
 
-
 
14
    This program is distributed in the hope that it will be useful,
-
 
15
    but WITHOUT ANY WARRANTY; without even the implied warranty of
-
 
16
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-
 
17
    GNU General Public License for more details.
-
 
18
 
-
 
19
    You should have received a copy of the GNU General Public License
-
 
20
    along with this program; if not, write to the Free Software
-
 
21
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
 
22
*/
-
 
23
 
-
 
24
// This script generates the documentation file os_types.md
-
 
25
 
4
define('DESC_WIDTH', 55);
26
define('DESC_WIDTH', 55);
5
define('VENDOR_WIDTH', 15);
27
define('VENDOR_WIDTH', 15);
6
 
28
 
7
ob_start();
29
ob_start();
8
 
30
 
Line 165... Line 187...
165
        echo str_repeat('-',strlen($title))."\n";
187
        echo str_repeat('-',strlen($title))."\n";
166
        echo "\n";
188
        echo "\n";
167
        echo "| C.code | Prpty. | Dec                   | Hex                   | ".str_pad('Description', DESC_WIDTH, " ", STR_PAD_RIGHT)." | ".str_pad('Vendor', VENDOR_WIDTH, " ", STR_PAD_RIGHT)." |\n";
189
        echo "| C.code | Prpty. | Dec                   | Hex                   | ".str_pad('Description', DESC_WIDTH, " ", STR_PAD_RIGHT)." | ".str_pad('Vendor', VENDOR_WIDTH, " ", STR_PAD_RIGHT)." |\n";
168
        echo "|--------|--------|-----------------------|-----------------------|".str_repeat('-', DESC_WIDTH+2)."|".str_repeat('-', VENDOR_WIDTH+2)."|\n";
190
        echo "|--------|--------|-----------------------|-----------------------|".str_repeat('-', DESC_WIDTH+2)."|".str_repeat('-', VENDOR_WIDTH+2)."|\n";
169
}
191
}
170
 
-