<p>Kevin Harwell <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/repotools/+/18683">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Benjamin Keith Ford: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, but someone else must approve
  Kevin Harwell: Looks good to me, approved; Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">staging_changes: Skip empty lines when parsing headers<br><br>When parsing headers there was a check in the code to skip new lines.<br>This caused a problem if a line contained only other whitespace. This<br>patch now skips lines that contain only whitespace or are essentially<br>empty.<br><br>Change-Id: I600e03cead6230fb8ce27abb586608d906312b4a<br>---<br>M staging_changes.py<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/staging_changes.py b/staging_changes.py</span><br><span>index f471e7d..dc8adac 100644</span><br><span>--- a/staging_changes.py</span><br><span>+++ b/staging_changes.py</span><br><span>@@ -169,7 +169,7 @@</span><br><span>             subjects = []</span><br><span>             message = ""</span><br><span>             line = f.readline()</span><br><span style="color: hsl(0, 100%, 40%);">-            while line != "\n":</span><br><span style="color: hsl(120, 100%, 40%);">+            while line.strip(" \t\n\r"):</span><br><span>                 # Get the subjects as they appear</span><br><span>                 if line.startswith("Subject:"):</span><br><span>                     subject = line.split("Subject:")[1].strip()</span><br><span></span><br></pre><div style="white-space:pre-wrap"></div><p>To view, visit <a href="https://gerrit.asterisk.org/c/repotools/+/18683">change 18683</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/repotools/+/18683"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: repotools </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I600e03cead6230fb8ce27abb586608d906312b4a </div>
<div style="display:none"> Gerrit-Change-Number: 18683 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Benjamin Keith Ford <bford@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>