add PrettyPrint option

This commit is contained in:
2014-01-16 11:43:21 +01:00
parent 845b1438fb
commit ef20ae9975
4 changed files with 17 additions and 4 deletions
+4
View File
@@ -1,3 +1,7 @@
### 4.2.3
- add PrettyPrint option
### 4.2.2
- use encoding found in HTTP headers in first iteration (fixes [issue #6](https://github.com/ceee/ReadSharp/issues/6))
+10 -1
View File
@@ -27,6 +27,14 @@ namespace ReadSharp
/// </value>
public bool UseDeepLinks { get; set; }
/// <summary>
/// Determines whether the output will be formatted.
/// </summary>
/// <value>
/// <c>true</c> if [pretty print]; otherwise, <c>false</c>.
/// </value>
public bool PrettyPrint { get; set; }
/// <summary>
/// Creates the default options.
/// </summary>
@@ -37,7 +45,8 @@ namespace ReadSharp
{
HasHeaderTags = false,
HasNoHeadline = false,
UseDeepLinks = false
UseDeepLinks = false,
PrettyPrint = false
};
}
}
+2 -2
View File
@@ -22,5 +22,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.2.2")]
[assembly: AssemblyFileVersion("4.2.2")]
[assembly: AssemblyVersion("4.2.3")]
[assembly: AssemblyFileVersion("4.2.3")]
+1 -1
View File
@@ -223,7 +223,7 @@ namespace ReadSharp
{
BodyOnly = !options.HasHeaderTags,
NoHeadline = options.HasNoHeadline,
PrettyPrint = true,
PrettyPrint = options.PrettyPrint,
DontIncludeContentTypeMetaElement = true,
DontIncludeMobileSpecificMetaElements = true,
DontIncludeDocTypeMetaElement = false,