Convert tabs to spaces.
Change-Id: I4c718740bebbde123aa0aa0cbae53778d840055b
This commit is contained in:
@@ -20,28 +20,28 @@ function header {
|
|||||||
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>$title</title>
|
<title>$title</title>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
* { margin: 0; padding: 0; }
|
* { margin: 0; padding: 0; }
|
||||||
body { font-family: sans-serif; font-size: 12px; }
|
body { font-family: sans-serif; font-size: 12px; }
|
||||||
#head { padding: 20px; background: #00A500; }
|
#head { padding: 20px; background: #00A500; }
|
||||||
#head a { color: #000; }
|
#head a { color: #000; }
|
||||||
#body { padding: 20px; }
|
#body { padding: 20px; }
|
||||||
#foot { padding: 10px; font-size: 9px; border-top: 1px #18A303 solid; margin-top: 25px; }
|
#foot { padding: 10px; font-size: 9px; border-top: 1px #18A303 solid; margin-top: 25px; }
|
||||||
p { line-height: 1.7em; margin-bottom: 1em; }
|
p { line-height: 1.7em; margin-bottom: 1em; }
|
||||||
pre { margin-bottom: 0.5em; }
|
pre { margin-bottom: 0.5em; }
|
||||||
.multi-col { -moz-column-width: 20em; -webkit-column-width: 20em; -moz-column-gap: 1em; -webkit-column-gap: 1em; }
|
.multi-col { -moz-column-width: 20em; -webkit-column-width: 20em; -moz-column-gap: 1em; -webkit-column-gap: 1em; }
|
||||||
h1 { margin-bottom: 0.5em; }
|
h1 { margin-bottom: 0.5em; }
|
||||||
h2,h3,h4 { margin: 1.3em 0 0.5em 0; }
|
h2,h3,h4 { margin: 1.3em 0 0.5em 0; }
|
||||||
ul, ol { margin: 0.5em 1.5em; }
|
ul, ol { margin: 0.5em 1.5em; }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="head">
|
<div id="head">
|
||||||
<h1>$title</h1>
|
<h1>$title</h1>
|
||||||
<p>$breadcrumb</p>
|
<p>$breadcrumb</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="body" style="multi-col">
|
<div id="body" style="multi-col">
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
@@ -209,26 +209,26 @@ header "LibreOffice Modules" " " "$BASE_OUTPUT/index.html"
|
|||||||
for module_name in *; do
|
for module_name in *; do
|
||||||
if [ -d $module_name ]; then
|
if [ -d $module_name ]; then
|
||||||
cur_file=$(echo $module_name/README* $module_name/readme.txt*)
|
cur_file=$(echo $module_name/README* $module_name/readme.txt*)
|
||||||
if [ -f "$cur_file" ]; then
|
if [ -f "$cur_file" ]; then
|
||||||
# write index.html entry
|
# write index.html entry
|
||||||
text="<h2><a href=\"${module_name}.html\">${module_name}</a></h2>\n"
|
text="<h2><a href=\"${module_name}.html\">${module_name}</a></h2>\n"
|
||||||
text="${text}$(head -n1 $cur_file | proc_text )"
|
text="${text}$(head -n1 $cur_file | proc_text )"
|
||||||
echo -e $text >> "$BASE_OUTPUT/index.html"
|
echo -e $text >> "$BASE_OUTPUT/index.html"
|
||||||
|
|
||||||
# write detailed module content
|
# write detailed module content
|
||||||
header "$module_name" "<a href=\"index.html\">LibreOffice</a> » ${module_name}" "$BASE_OUTPUT/${module_name}.html"
|
header "$module_name" "<a href=\"index.html\">LibreOffice</a> » ${module_name}" "$BASE_OUTPUT/${module_name}.html"
|
||||||
text="<p><b>View module in:</b>"
|
text="<p><b>View module in:</b>"
|
||||||
text="${text} <a href=\"http://cgit.freedesktop.org/libreoffice/core/tree/${module_name}\">cgit</a>"
|
text="${text} <a href=\"http://cgit.freedesktop.org/libreoffice/core/tree/${module_name}\">cgit</a>"
|
||||||
if $(echo $INPUT_PROJECTS | grep -q $module_name); then
|
if $(echo $INPUT_PROJECTS | grep -q $module_name); then
|
||||||
text="${text} <a href=\"${module_name}/html/classes.html\">Doxygen</a>"
|
text="${text} <a href=\"${module_name}/html/classes.html\">Doxygen</a>"
|
||||||
fi
|
fi
|
||||||
text="${text} </p><p> </p>"
|
text="${text} </p><p> </p>"
|
||||||
echo -e $text >> "$BASE_OUTPUT/${module_name}.html"
|
echo -e $text >> "$BASE_OUTPUT/${module_name}.html"
|
||||||
proc_text < $cur_file >> "$BASE_OUTPUT/${module_name}.html"
|
proc_text < $cur_file >> "$BASE_OUTPUT/${module_name}.html"
|
||||||
footer "$BASE_OUTPUT/${module_name}.html"
|
footer "$BASE_OUTPUT/${module_name}.html"
|
||||||
else
|
else
|
||||||
empty_modules[${#empty_modules[*]}]=$module_name
|
empty_modules[${#empty_modules[*]}]=$module_name
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ ${#empty_modules[*]} -gt 0 ]; then
|
if [ ${#empty_modules[*]} -gt 0 ]; then
|
||||||
|
Reference in New Issue
Block a user