Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master bashdoc by Jaka Kranjc (9507a67eb577d8d57de587c566bea263c68aa7b4)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Jaka Kranjc <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master bashdoc by Jaka Kranjc (9507a67eb577d8d57de587c566bea263c68aa7b4)
  • Date: Mon, 5 Oct 2009 12:37:10 -0500

GIT changes to master bashdoc by Jaka Kranjc <lynxlynxlynx AT sourcemage.org>:

ChangeLog | 3 +++
bashdoc.sh | 5 +++--
2 files changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 9507a67eb577d8d57de587c566bea263c68aa7b4
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>

bashdoc: titlecase the output tag name

diff --git a/ChangeLog b/ChangeLog
index a46cecc..8a3eb2e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2009-10-05 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
+ * bashdoc: titlecase the output tag name
+
2008-04-14 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* generate_tarball.sh, version: added
* generate-smgl-docs.sh: fixed build_api inclusion
diff --git a/bashdoc.sh b/bashdoc.sh
index 821f9b3..e47c090 100755
--- a/bashdoc.sh
+++ b/bashdoc.sh
@@ -366,10 +366,11 @@ function parse_comments()
## @Stdout HTMLized tags
#---------------------
function output_parsed_tags() {
- local i
+ local i, label
for i in ${!tag_*} ; do
# Convert _ in tags to space. Looks better.
- echo " <h3 class=\"othertag ${1}othertag
${i/tag_/tag-}\">$(sed 's/_/ /g' <<< "${i#tag_}")</h3>"
+ label=$(sed -e 's/_/ /g' -e 's,^.,\U&,' <<< "${i#tag_}")
+ echo " <h3 class=\"othertag ${1}othertag
${i/tag_/tag-}\">$label</h3>"
# This may be fun, allow special formatting by tag.
echo " <p class=\"othertag ${1}othertag ${i/tag_/tag-}\">"
echo " ${!i}"



  • [SM-Commit] GIT changes to master bashdoc by Jaka Kranjc (9507a67eb577d8d57de587c566bea263c68aa7b4), Jaka Kranjc, 10/05/2009

Archive powered by MHonArc 2.6.24.

Top of Page