mirror of
https://github.com/rutgersc/m3u8-rs.git
synced 2024-11-29 20:01:04 +00:00
Remove additional newline after "#EXTM3U" added in previous commit
Co-authored-by: Vadim Getmanshchuk <vagetman@users.noreply.github.com>
This commit is contained in:
parent
85141f6a51
commit
b692ac0808
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ impl MasterPlaylist {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn write_to<T: Write>(&self, w: &mut T) -> std::io::Result<()> {
|
pub fn write_to<T: Write>(&self, w: &mut T) -> std::io::Result<()> {
|
||||||
writeln!(w, "#EXTM3U\n")?;
|
writeln!(w, "#EXTM3U")?;
|
||||||
|
|
||||||
if let Some(ref v) = self.version {
|
if let Some(ref v) = self.version {
|
||||||
writeln!(w, "#EXT-X-VERSION:{}", v)?;
|
writeln!(w, "#EXT-X-VERSION:{}", v)?;
|
||||||
|
@ -429,7 +429,7 @@ pub struct MediaPlaylist {
|
||||||
|
|
||||||
impl MediaPlaylist {
|
impl MediaPlaylist {
|
||||||
pub fn write_to<T: Write>(&self, w: &mut T) -> std::io::Result<()> {
|
pub fn write_to<T: Write>(&self, w: &mut T) -> std::io::Result<()> {
|
||||||
writeln!(w, "#EXTM3U\n")?;
|
writeln!(w, "#EXTM3U")?;
|
||||||
|
|
||||||
if let Some(ref v) = self.version {
|
if let Some(ref v) = self.version {
|
||||||
writeln!(w, "#EXT-X-VERSION:{}", v)?;
|
writeln!(w, "#EXT-X-VERSION:{}", v)?;
|
||||||
|
|
Loading…
Reference in a new issue