Alien-SVN
view release on metacpan or search on metacpan
src/subversion/tools/dev/contribulyze.py view on Meta::CPAN
return _spam_guard_in_html_block_re.subn(_spam_guard_in_html_block_func,
str)[0]
def html_header(title, page_heading=None, highlight_targets=False):
"""Write HTML file header. TITLE and PAGE_HEADING parameters are
expected to already by HTML-escaped if needed. If HIGHLIGHT_TARGETS
is true, then write out a style header that causes anchor targets to be
surrounded by a red border when they are jumped to."""
if not page_heading:
page_heading = title
s = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n'
s += ' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n'
s += '<html><head>\n'
s += '<meta http-equiv="Content-Type"'
s += ' content="text/html; charset=UTF-8" />\n'
if highlight_targets:
s += '<style type="text/css">\n'
s += ':target { border: 2px solid red; }\n'
s += '</style>\n'
s += '<title>%s</title>\n' % title
s += '</head>\n\n'
src/subversion/tools/dist/collect_sigs.py view on Meta::CPAN
yield f
def ordinal(N):
try:
return [None, 'first', 'second', 'third', 'fourth', 'fifth', 'sixth'][N]
except:
# Huh? We only have six files to sign.
return "%dth" % N
shell_content = '''
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Signature collection for Subversion $version</title>
</head>
<body style="font-size: 14pt; text-align: justify;
background-color: #f0f0f0; padding: 0 5%%">
<p>This page is used to collect <a href="%s/list">signatures</a> for the
proposed release of Apache Subversion $version.</p>
$content
src/subversion/tools/dist/templates/nightly-candidates.ezt view on Meta::CPAN
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Subversion nightly tarballs (r[revnum])</title>
</head>
<body style="font-size: 14pt; text-align: justify;
background-color: #f0f0f0; padding: 0 5%%">
<h1 style="font-size: 30pt; text-align: center;
text-decoration: underline">WARNING</h1>
src/subversion/tools/examples/svnlog2html.rb view on Meta::CPAN
require "erb"
require "svn/client"
include ERB::Util
path = File.expand_path(ARGV.shift || Dir.pwd)
html = <<-HEADER
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
div.entry
{
border: 1px solid red;
border-width: 1px 0 0 1px;
margin: 2em 2em 2em 3em;
padding: 0 2em;
( run in 1.621 second using v1.01-cache-2.11-cpan-49f99fa48dc )