Selaa lähdekoodia

add missing whitespace before /> so that the XHTML works in more plain-HTML parsers; quote attributes in double quotes rather than single quotes for the same reason

tags/v0.99.beta17
Ben Wiley Sittler bsittler 16 vuotta sitten
vanhempi
commit
b6db5dc781
5 muutettua tiedostoa jossa 6 lisäystä ja 6 poistoa
  1. +1
    -1
      caca-php/examples/www/cacainfo.php
  2. +2
    -2
      caca-php/examples/www/dithering.php
  3. +1
    -1
      caca-php/examples/www/figlet.php
  4. +1
    -1
      caca-php/examples/www/render.php
  5. +1
    -1
      caca-php/examples/www/text.php

+ 1
- 1
caca-php/examples/www/cacainfo.php Näytä tiedosto

@@ -19,7 +19,7 @@ header('Content-Type: text/html; charset=UTF-8');
?>
<head>
<title>sample program for libcaca php binding</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body text="silver" bgcolor="black">
<?php


+ 2
- 2
caca-php/examples/www/dithering.php Näytä tiedosto

@@ -7,7 +7,7 @@ header('Content-Type: text/html; charset=UTF-8');
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Caca power!</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<?php
@@ -38,7 +38,7 @@ $canvas = caca_create_canvas(100, 40);
caca_dither_bitmap($canvas, 0, 0, caca_get_canvas_width($canvas), caca_get_canvas_height($canvas), $dither, $img);

echo caca_export_string($canvas, "html3");
echo "<img src='./$src' alt=''/>";
echo "<img src=\"./$src\" alt="" />";

?>
</body>


+ 1
- 1
caca-php/examples/www/figlet.php Näytä tiedosto

@@ -6,7 +6,7 @@ header('Content-Type: text/html; charset=UTF-8');
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Caca power!</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<form method="get" action="#"><input name="str" value="<?= htmlspecialchars(isset($_GET["str"]) ? $_GET["str"] : "Libcaca") ?>" /><input type="submit" value="OK" /></form>


+ 1
- 1
caca-php/examples/www/render.php Näytä tiedosto

@@ -51,7 +51,7 @@ $render_php = isset($_SERVER['SCRIPT_NAME'])
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Я люблю Либкаку</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body text="silver" bgcolor="black">



+ 1
- 1
caca-php/examples/www/text.php Näytä tiedosto

@@ -23,7 +23,7 @@ header('Content-Type: text/html; charset=UTF-8');
?>
<head>
<title>demo for libcaca php binding</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body text="silver" bgcolor="black">
<?php


Ladataan…
Peruuta
Tallenna