<div dir="ltr">\pagenote comes from pagenote package, here is the content of the package, traditionalpoem with empty lines really has no problem but also pagenote with empty lines has no problem except when added in traditionalpoem environment. I will appreciate any help.<br>
<br>Thanks<br><br>%%<br>%% This is file `pagenote.sty',<br>%% generated with the docstrip utility.<br>%%<br>%% The original source files were:<br>%%<br>%% pagenote.dtx  (with options: `usc')<br>%% <br>%% -----------------------------------------------------------------<br>
%%   Author: Peter Wilson (The Herries Press)<br>%%   Maintainer: Will Robertson (will dot robertson at latex-project dot org)<br>%%   Copyright 2004 Peter R. Wilson<br>%% <br>%%   This work may be distributed and/or modified under the<br>
%%   conditions of the LaTeX Project Public License, either<br>%%   version 1.3c of this license or (at your option) any<br>%%   later version: <<a href="http://www.latex-project.org/lppl.txt">http://www.latex-project.org/lppl.txt</a>><br>
%% <br>%%   This work has the LPPL maintenance status "maintained".<br>%%   The Current Maintainer of this work is Will Robertson.<br>%% <br>%%   This work consists of the files listed in the README file.<br>%% -----------------------------------------------------------------<br>
%% <br>\NeedsTeXFormat{LaTeX2e}<br>\ProvidesPackage{pagenote}[2009/09/03 v1.1a page/end notes]<br>\@ifclassloaded{memoir}{}{\RequirePackage{ifmtarg}}<br><br>\newif\ifpnhaschapter<br>\@ifundefined{chapter}{\pnhaschapterfalse}{\pnhaschaptertrue}<br>
<br>\providecommand{\f@rtoc}{}<br><br>\newif\ifpnpageopt<br>  \pnpageoptfalse<br>\newif\ifpncontopt<br>  \pncontoptfalse<br><br>\DeclareOption{page}{\pnpageopttrue}<br>\DeclareOption{continuous}{\pncontopttrue}<br>\ProcessOptions<br>
<br>\ifpncontopt<br>  \newcounter{pagenote}<br>\else<br>  \ifpnhaschapter<br>    \newcounter{pagenote}[chapter]<br>  \else<br>    \newcounter{pagenote}[section]<br>  \fi<br>\fi<br>\renewcommand{\thepagenote}{\arabic{pagenote}}<br>
\setcounter{pagenote}{0}<br>\newcounter{pnotesavechap}<br>  \setcounter{pnotesavechap}{-1000}<br><br>\newif\ifmakingpagenotes<br>  \makingpagenotesfalse<br><br>\newcommand*{\makepagenote}{%<br>  \newwrite\@notefile<br>  \immediate\openout\@notefile=\jobname.ent<br>
  \makingpagenotestrue<br>  \def\pagenote{\@bsphack\begingroup<br>    \@sanitize<br>    \@wrpnote}%<br>  \typeout{Writing note file \jobname.ent}%<br>  \let\makepagenote\@empty}<br><br>\newcommand{\immediate@protected@write}[3]{%<br>
  \begingroup<br>  #2%<br>  \let\protect\@unexpandable@protect<br>  \edef\reserved@a{\immediate\write#1{#3}}%<br>  \reserved@a<br>  \endgroup<br>  \if@nobreak\ifvmode\nobreak\fi\fi}<br><br>\ifpnpageopt<br>  \let\@pnwrite\protected@write<br>
\else<br>  \let\@pnwrite\immediate@protected@write<br>\fi<br><br>\newcommand{\@wrpnote}[2][]{%<br>  \refstepcounter{pagenote}%<br>  \notenumintext{\thepagenote}%<br>  \ifpnhaschapter<br>    \ifnum\value{pnotesavechap}=\value{chapter}\else<br>
      \setcounter{pnotesavechap}{\value{chapter}}%<br>      \addtonotes{\pagenotesubhead{\thechapter}{\f@rtoc}}%<br>    \fi<br>  \else<br>    \ifnum\value{pnotesavechap}=\value{section}\else<br>      \setcounter{pnotesavechap}{\value{section}}%<br>
      \addtonotes{\pagenotesubhead{\thesection}{}}%<br>    \fi<br>  \fi<br>  \@pnwrite\@notefile{}<br>    {\string\noteentry{\thepagenote}{#1}{#2}{\thepage}}%<br>  \endgroup<br>  \@esphack}<br><br>\def\pagenote{\@bsphack\begingroup \@sanitize\@pagenote}<br>
<br>\newcommand{\@pagenote}[2][]{\endgroup\@esphack}<br><br>\newcommand{\addtonotes}[1]{%<br>  \ifmakingpagenotes<br> \IfFileExists{\jobname.ent}{\@pnwrite\@notefile{}{#1}}{\pnofilewarn}%<br>\fi}<br><br>\newcommand{\notenumintext}[1]{%<br>
  \textsuperscript{#1}}<br>\newcommand{\notenuminnotes}[1]{%<br>  {\normalfont #1.} }<br>\newcommand{\noteentry}[4]{%<br>  \prenoteinnotes<br>  \noteidinnotes{#1}{#2}\pageinnotes{#4}\noteinnotes{#3}%<br>  \postnoteinnotes}<br>
<br>\newcommand{\textinnotes}[1]{%<br>  [#1] }<br>\newcommand{\noteidinnotes}[2]{%<br>  \@ifmtarg{#2}{%<br>    \notenuminnotes{#1}}{\textinnotes{#2}}}<br>\providecommand*{\pagename}{page}<br>\newcommand{\pageinnotes}[1]{%<br>
  \ifpnpageopt (\pagename\ #1) \fi}<br>\newcommand{\noteinnotes}[1]{#1}<br><br>\newcommand{\prenoteinnotes}{\par\noindent}<br>\newcommand{\postnoteinnotes}{\par}<br><br>\providecommand*{\notesname}{Notes}<br>\ifpnhaschapter<br>
  \newcommand*{\notedivision}{\chapter{\notesname}}<br>\else<br>  \newcommand*{\notedivision}{\section{\notesname}}<br>\fi<br><br>\newcommand*{\printnotes}{\@ifstar{\@sprintnotes}{\@printnotes}}<br>\newcommand*{\pnofilewarn}{%<br>
  \PackageWarning{pagenote}{There is no .ent file}}<br>\newcommand*{\@sprintnotes}{%<br>  \ifmakingpagenotes<br>  \notedivision<br>\IfFileExists{\jobname.ent}{%<br>  \immediate\closeout\@notefile<br>  \input{\jobname.ent}%<br>
  \immediate\openout\@notefile=\jobname.ent%<br>  }{%<br>  \pnofilewarn<br>}%<br>\fi}<br><br>\newcommand*{\@printnotes}{%<br>  \ifmakingpagenotes<br>  \notedivision<br>\IfFileExists{\jobname.ent}{%<br>  \immediate\closeout\@notefile<br>
  \input{\jobname.ent}%<br>  }{%<br>  \pnofilewarn<br>}<br>\fi}<br><br>\providecommand*{\chaptername}{Chapter}<br>\providecommand*{\sectionname}{Section}<br>\ifpnhaschapter<br>  \DeclareRobustCommand{\pagenotesubhead}[2]{%<br>
    \subsection*{\chaptername\ #1 #2}}<br>\else<br>  \DeclareRobustCommand{\pagenotesubhead}[2]{%<br>    \subsection*{\sectionname\ #1}}<br>\fi<br><br>\endinput<br>%%<br>%% End of file `pagenote.sty'.<br><br></div>