зеркало из https://github.com/mozilla/pjs.git
Add padding for the textarea object to give a wider margin of space between
the widget and the text in it. Remove leading and trailing spaces/newlines. Add a rows attribute to the textarea input element to pretty it up.
This commit is contained in:
Родитель
a35b9dfaed
Коммит
19f3783d14
|
@ -117,7 +117,7 @@ sub print_script_preview {
|
||||||
<link rel="stylesheet" type="text/css" href="http://www.mozilla.org/css/base/template.css" media="screen">
|
<link rel="stylesheet" type="text/css" href="http://www.mozilla.org/css/base/template.css" media="screen">
|
||||||
<link rel="stylesheet" type="text/css" href="http://www.mozilla.org/css/cavendish/template.css" title="Cavendish" media="screen">
|
<link rel="stylesheet" type="text/css" href="http://www.mozilla.org/css/cavendish/template.css" title="Cavendish" media="screen">
|
||||||
<link rel="icon" href="http://www.mozilla.org/images/mozilla-16.png" type="image/png">
|
<link rel="icon" href="http://www.mozilla.org/images/mozilla-16.png" type="image/png">
|
||||||
<style type="text/css">textarea { border: 1px solid black; }</style>
|
<style type="text/css">textarea { border: 1px solid black; padding: 2px; }</style>
|
||||||
</HEAD>
|
</HEAD>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
@ -142,13 +142,14 @@ sub print_script_preview {
|
||||||
}
|
}
|
||||||
|
|
||||||
my $script = &print_script;
|
my $script = &print_script;
|
||||||
|
$script =~ s/^[\n\s]*|[\n\s]*$//g;
|
||||||
|
|
||||||
print qq(
|
print qq(
|
||||||
<!--
|
<!--
|
||||||
<pre class="code">$script</pre>
|
<pre class="code">$script</pre>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<textarea name="code-to-save" cols="60">$script</textarea>
|
<textarea name="code-to-save" cols="60" rows="10">$script</textarea>
|
||||||
<p><input type='submit' value='Save the script'>
|
<p><input type='submit' value='Save the script'>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче