arjangassadi / url2mhtml Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/url2mhtml
Automatically exported from code.google.com/p/url2mhtml
What steps will reproduce the problem?
The problem is with the boundary marker when embedding content. This can be
fixed with a code change.
What is the expected output? What do you see instead?
Expected output is a working mht archive. What I'm getting instead is an
invalid mht file.
What version of the product are you using? On what operating system?
The only version available.
Please provide any additional information below.
This issue can be fixed by adjusting the following:
In builder.cs, update the AppendMhtBoundary function
private void AppendMhtBoundary(bool end = false)
{
// I have replaced " ", with "". look into this later.
AppendMhtLine(string.Empty);
if (end == true)
{
AppendMhtLine("--" + _MimeBoundaryTag + "--");
}
else
{
AppendMhtLine("--" + _MimeBoundaryTag);
}
//AppendMhtLine(" ");
}
and the AppendMhtFiles function
private void AppendMhtFiles()
{
foreach (DictionaryEntry de in WebFiles)
{
WebFile ef = (WebFile)de.Value;
AppendMhtFile(ef);
}
AppendMhtBoundary(true);
}
This makes sure that the last embedded object adds the necessary "--" onto the
end of the boundary marker.
Original issue reported on code.google.com by [email protected]
on 6 Aug 2014 at 6:49
Attachments:
BWhat steps will reproduce the problem?
1. By the history this has been laying in the boneyard since 1998.
2. Others like Microsoft IE currently use it since iit is current html code.
Google Chrome isn't using it yet.
3. Google Chrome still makes a shortcut and a folder full of parts as bad as a
disorganized hardware store.
What is the expected output? What do you see instead?
An url saved to one file instead of a shortcut and a folder holding everything
under the sun.
What version of the product are you using? On what operating system?
Current public Google Chrome available 7/28/2010 running on Microsoft XP.
Please provide any additional information below.
This is one of two Google Chrome missing items that occasionally almost makes
me uninstall Google Chrome and go back to Internet Explorer.
Original issue reported on code.google.com by PastorDIC
on 28 Jul 2010 at 10:57
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.