--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: Content of DESC field not put into meta-description tag
- From: Daniel Leidert <daniel.leidert@wgdd.de>
- Date: Sat, 06 Oct 2012 16:55:53 +0200
- Message-id: <20121006145553.22252.64718.reportbug@haktar.debian.wgdd.de>
Package: nanoblogger
Version: 3.4.2-3
Severity: normal
Tags: patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Consider using the --desc switch or putting content into the DESC field of
an entry. The resulting entry file contains an empty tag:
<meta name="description" content="" />
although this tag should contain the content of the DESC field. The bug
has been fixed in 3.5 RC 1. A patch is attached.
Regards, Daniel
- -- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (850, 'unstable'), (700, 'testing'), (560, 'stable'), (110, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages nanoblogger depends on:
ii bsdmainutils 9.0.3
Versions of packages nanoblogger recommends:
ii markdown 1.0.1-7
ii tidy 20091223cvs-1.2
Versions of packages nanoblogger suggests:
ii epiphany-browser [www-browser] 3.4.2-2
ii galeon [www-browser] 2.0.7-2.1+b1
ii iceape [www-browser] 2.7.7-1
ii iceweasel [www-browser] 10.0.7esr-2
ii kazehakase [www-browser] 0.5.8-4
ii links2 [www-browser] 2.7-1
ii lynx-cur [www-browser] 2.8.8dev.14-1
ii nanoblogger-extra 3.4.2-2
ii netrik [www-browser] 1.16.1-1.1
ii opera [www-browser] 12.02.1578
ii w3m [www-browser] 0.5.3-8
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlBwRnQACgkQm0bx+wiPa4w4YwCeNNhYQBRDgMqQa2vqakn+mI9I
tnYAoL6HQZtzvJncKTSWZtpgHa1TLOym
=7G7h
-----END PGP SIGNATURE-----
Author: n1xt3r
Origin: http://nanoblogger.svn.sourceforge.net/viewvc/nanoblogger/branches/nanoblogger-3.5/
Description: 2011-07-31 21:16 n1xt3r
* - Bug Fix: Description was not being loaded from entry's
metadata.
--- a/lib/tools.sh
+++ b/lib/tools.sh
@@ -330,8 +330,8 @@
read_metadata DATE "$METADATA_FILE"; NB_MetaDate="$METADATA"
NB_EntryDate="$NB_MetaDate";;
DESC)
- NB_EntryDescription="$NB_MetaDescription"
- read_metadata FORMAT "$METADATA_FILE"; NB_MetaFormat="$METADATA";;
+ read_metadata DESC "$METADATA_FILE"; NB_MetaDescription="$METADATA"
+ NB_EntryDescription="$NB_MetaDescription";;
FORMAT)
read_metadata FORMAT "$METADATA_FILE"; NB_MetaFormat="$METADATA"
NB_EntryFormat="$NB_MetaFormat";;
--- a/nb
+++ b/nb
@@ -746,7 +746,7 @@
echo "$addweblog_title"
read -p "$NB_PROMPT" NB_EntryTitle
fi
- [ ! -z "$USR_TEXT" ] && NB_EntryBody="$USR_TEXT"; USR_TEXT=
+ [ ! -z "$USR_TEXT" ] && NB_MetaBody="$USR_TEXT"; USR_TEXT=
[ ! -z "$USR_DESC" ] && NB_EntryDescription="$USR_DESC"
# prompt for description interactively
if [ -z "$NB_EntryDescription" ] && [ "$DESC_PROMPT" != 1 ] &&
@@ -770,7 +770,7 @@
write_var "$USR_METAVAR" "$USR_SETVAR" "$IMPORT_FILE"
cat "$IMPORT_FILE" > "$NB_EditFile"
fi
- if [ -z "$NB_EntryBody" ]; then
+ if [ -z "$NB_MetaBody" ]; then
nb_msg "$addweblog_editnew"
nb_edit -p "$NB_EditFile"
# preserve custom meta variable and data
--- End Message ---