Skip to content

Commit

Permalink
Fix issue alxnbl#93
Browse files Browse the repository at this point in the history
  • Loading branch information
alxnbl committed Sep 22, 2023
1 parent 97c6202 commit e1b6fd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OneNoteMdExporter/Models/Page.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public string TitleWithPageLevelTabulation { get
return level + (level.Length > 0 ? " " : "") + Title;
}
}
public string TitleWithNoInvalidChars(int maxLength)
=> Title.RemoveInvalidFileNameChars().Left(maxLength);
public string TitleWithNoInvalidChars(int maxLength)
=> Title.RemoveInvalidFileNameChars().TrimEnd().Left(maxLength); // TrimEnd -> Fix https://github.com/alxnbl/onenote-md-exporter/issues/93

public IList<Attachement> Attachements { get; set; } = new List<Attachement>();
public IList<Attachement> ImageAttachements { get => Attachements.Where(a => a.Type == AttachementType.Image).ToList(); }
Expand Down

0 comments on commit e1b6fd5

Please sign in to comment.