From efc29ff31bb604175c48d3ec092e2649eab0f4bd Mon Sep 17 00:00:00 2001
From: Chris Johns <chrisj@rtems.org>
Date: Fri, 11 Aug 2017 03:09:50 +0000
Subject: Update copyright notices.

---
 common/rtemsstyle.sty | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'common/rtemsstyle.sty')

diff --git a/common/rtemsstyle.sty b/common/rtemsstyle.sty
index 8f963c4..96313f1 100644
--- a/common/rtemsstyle.sty
+++ b/common/rtemsstyle.sty
@@ -61,10 +61,10 @@ gobble=0,
 \fancypagestyle{normal}{
   \fancyhf{}
   \fancyfoot[LE,RO]{{\thepage}}
-  \fancyfoot[LO]{{\nouppercase{\rightmark}}}
+  \fancyfoot[LO]{{\ifnum\value{chapter}>0{\nouppercase{\rightmark}}\fi}}
   \fancyfoot[RE]{{\nouppercase{\leftmark}}}
   \fancyhead[LE,RO]{{\@title, \py@release}}
-  \fancyhead[RE,LO]{{\chaptername\:\thechapter\:Section\:\thesection}}
+  \fancyhead[RE,LO]{{\ifnum\value{chapter}>0{\chaptername\:\thechapter\:Section\:\thesection}\fi}}
   \renewcommand{\headrulewidth}{0.4pt}
   \renewcommand{\footrulewidth}{0.4pt}
 }
-- 
cgit v1.2.3

