From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-842646-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 9F1CF13888F
	for <garchives@archives.gentoo.org>; Mon, 26 Oct 2015 18:41:41 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 133F321C00E;
	Mon, 26 Oct 2015 18:41:39 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id B4B3321C00E
	for <gentoo-commits@lists.gentoo.org>; Mon, 26 Oct 2015 18:41:38 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 9D5B9340A27
	for <gentoo-commits@lists.gentoo.org>; Mon, 26 Oct 2015 18:41:36 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 7A8D11735
	for <gentoo-commits@lists.gentoo.org>; Mon, 26 Oct 2015 18:41:31 +0000 (UTC)
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" <ulm@gentoo.org>
Message-ID: <1445884818.bc3078f1d5cfbbac330218c2745ec74e9370d16a.ulm@gentoo>
Subject: [gentoo-commits] proj/pms:master commit in: /
X-VCS-Repository: proj/pms
X-VCS-Files: pms.cls
X-VCS-Directories: /
X-VCS-Committer: ulm
X-VCS-Committer-Name: Ulrich Müller
X-VCS-Revision: bc3078f1d5cfbbac330218c2745ec74e9370d16a
X-VCS-Branch: master
Date: Mon, 26 Oct 2015 18:41:31 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 1474cea4-6a8b-44ac-a5b7-8bf17a1b9fc7
X-Archives-Hash: cd410d32b20bc25d875fb2fc040dda6d

commit:     bc3078f1d5cfbbac330218c2745ec74e9370d16a
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 26 18:40:18 2015 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Oct 26 18:40:18 2015 +0000
URL:        https://gitweb.gentoo.org/proj/pms.git/commit/?id=bc3078f1

pms.cls: Fix featurelabel command.

Leave vertical mode to fix vertical alignment of the margin note.
Suppress spurious whitespace in running text.
Workaround for marginnote not being supported by tex4ht.

 pms.cls | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/pms.cls b/pms.cls
index af8e1b4..80ba8e8 100644
--- a/pms.cls
+++ b/pms.cls
@@ -77,8 +77,13 @@
 % the page margin.
 \newcommand{\featureref}[1]{\textsc{#1} on page~\pageref{feat:#1}}
 \newcommand{\compactfeatureref}[1]{#1~p\pageref{feat:#1}}
-\newcommand{\featurelabel}[1]{\label{feat:#1}%
-    \marginnote{\framebox{\textsc{#1}}}%
+\newcommand{\featurelabel}[1]{\leavevmode\label{feat:#1}%
+    \ifthenelse{\boolean{TEX4HT-HACKS}}{%
+        % tex4ht does not support marginnote
+        \framebox{\textsc{#1}}%
+    }{%
+        \marginnote{\framebox{\textsc{#1}}}\ignorespaces
+    }%
 }
 \bibliographystyle{plainurl}