entering a new sentence without using <br> or <p> - html

If there are a number of links on a webpage, is it possible to break onto a new line while the link is either fully on either side?
For example: This blog http://northskie.blogspot.com/ shows a series of links using the standard A HREF="http://www... " etc .
But, you'll notice that on the first line, Chapin's Inferno appears on BOTH sentence line A, AND line B. This could easily be corrected by adding a BR, of course. BUT, what if I'm working on a huge number of links, such as http://asmrluv.blogspot.com/ ? Now, I'd prefer NOT to to simply add BR or P between each Breaking line. Also note, many sites could be added to the list later. This is why BR lines should be avoided here.
Can any code be implemented which automatically prevents a link from appearing on both lines? (of course, adding a CLASS or ID would along with code would be acceptable). I'm trying to avoid the problem of a link appearing halfway on one sentence, then on the next line as well.

Related

Email HTML - line not able to line break properly with _ instead of -

I've spent hours researching this and I'm trying to edit an email where they would like the References to say something like:
American Parkinson Association: https://www.test.com/abcdefghijklmnopqrstuvwxyz/12-09.com
ABCDEF: https://www.test.com/abcdefghijklmnopqrstuvwxyz/1234567890_098765_4321.com
However, when I code the 2nd numbered list, because there are underscores in the link and not dashes, it instead turns to the below with the link on it's own separate line. If I change the underscores to dashes, it will work formatting wise, but the link is obviously incorrect. I tried adding a "space" in the text of the link but if someone has to copy the link and send it, it will contain the "%20" and error out. If I add a "br" in the text, I will have to link both sections of the link. If I force the link to span across, then the whole width of the email will stretch and look weird.
ABCDEF:
https://www.test.com/abcdefghijklmnopqrstuvwxyz/1234567890_098765_4321.com
This is driving me crazy. There has to be an easier way. Please help?
It looks like it's because the entirety of the line itself may be too long, and thus making the line jump down. It should not be because of underscores specifically, or any of that sort.
You have quite a few options.
1) Add CSS that formats the text and/or links to a size where the link is within the acceptable size that you desire. There are numerous ways to achieve this.
2) Simply make an anchor tag that links to your desired url, and you can type whatever seems the most reasonable as the visual link.
Example:
Whatever text you want
The second solution is more clean, and that way you can make it way more compact and straight to the point as well. Having ridiculously long links in an E-mail looks unprofessional in my opinion.

Conditionally adding a line to text box with bulleted list in SSRS

I'm a competent C# developer, but new to SSRS, so my inability to figure out this stupid little issue is kinda killing me here.
I've got a report that's basically a printed quote. There's a terms and conditions section at the bottom that looks like
some static text
some static text
some static text
With certain quote types, we want to add one more line to the bottom of that. I've tried a bunch of ways to get this to work, but can't seem to get it to work within the bulleted list. If I add a new line with the bullet, I've got a blank bullet when the quote type doesn't call for that item. If I clear the bullet and try to manually add it with chr(9) for tabs, it doesn't work. The closest I could get to it was this:
=iif(Trim(First(Fields!QuoteTypeCode.Value, "QuoteDetailsDataSet")) = "N", " • Prices Subject to Change", "")
Problem is, that still leaves an unwanted blank line. Ideally, I'd think my solution would be to put my «expr» at the end of the last static text line and trigger a line break that would add another bullet and my text, or, after that line, with html, add a <li>my text</li>, but none of that works.
Is there something silly that I'm missing here?
I could easily just create two versions of this box, one with that line, one without, and conditionally display the appropriate one, depending on what type of quote it is, but that feels "dirty". At this point though, as simple as this task is, I'm ready to go dirty rather than spin my wheels for too much longer over something so trivial. :(
I would Create a separate dataset, ex. Italicsdataset
select "bullet text formatted in html" as Option1, "bullet option 2" as Option 2...
then in your text box select create an expression such as
IIF(fields!Field.value = 1, fields!option1.value, 0)

Removing Blank Paragraph after appendTable()

I'm merging two Google Docs together, by appending each of the elements from one document to the other. This works great, except for when I use appendTable() I'm getting an extra blank line after each table. After some digging, I discovered that this is actually a blank paragraph element.
In trying to remove this blank paragraph I thought maybe I could, after appending the table, remove the next sibling, like so:
var table = body.appendTable(element);
body.removeChild(table.getNextSibling());
However, I'm greeted with a, Can't remove the last paragraph in a document section. message when I try this method.
Has anyone else figured out a way to remove this blank paragraph after using appendTable()?
Developers documentations says that a Google Doc can't end with a paragraph, so one will always be automatically inserted.

Close tags dropping below highlighted line

I have minimal experience with HTML script so this may all go horribly wrong here.
Alright so I have a very simple yet very time consuming task of taking complete papers and converting them into HTML script. I'm using Sublime Text 3 with Emmet plugin.
Basically,
This is the first header
This is the first paragraph that needs to be tagged
This is the second header
This is the second paragraph that needs to be tagged
So super simple I need to put header tags on the headers and paragraph tags on the paragraphs.
What I have been doing is holding Ctrl and manually highlighting the desired text as it is all rather random. Problem is that takes forever to manually highlight the text like that.
I am aware of other ways to highlight such as Ctrl + L for the line. Problem is my close tags end up under the highlighted line.
Example:
<h2>This is the first header
</h2><p>This is the first paragraph that needs to be tagged
</p>
It's not a big deal but it makes the code harder to go through later and really chaotic.
The same problem persists if I click the corresponding number of the line.
Seeing as I have hundreds of pages to enter and even more headers, paragraphs, and pictures to properly tag; I'm looking for a solution to the tag dropping below the line or a faster method to entering text.
So, is there a fast method for entering text from a word document to Sublime text and quickly get the corresponding tags? e.g. <h2>,<h3>,<p>,<ul>,<li> and so on.
Any help will save my sanity, thanks.
When you select a line with CtrlL, it automatically selects the entire line, and moves the cursor down to the first position on the following line. There are two ways around this. The first is to place the cursor in the first position on the line you want to select, then just hit ShiftEnd and the line will be selected, with the cursor now sitting in the last position on that same line. Alternatively, use CtrlL, then hit Shift← (left arrow) to move the cursor from the first position on the next line to the last position on the selected line. Either way, you can now hit the key combo in Emmet for inserting a tag pair, and you're all set.

Using neutral <div> as word boundary?

I have a .html file containing text content like:
<div> The study concludes that 1+1 = 2. (Author in Journal..., Page ...) Another study finds...</div>
Now when viewing this in Firefox, I want to be able to conveniently copy the text in the () brackets. But 2 left mouseclicks only mark one word like "Journal", and 3 clicks mark the content of the whole div.
So my idea was to put the brackets in another div like:
<div> The study concludes that 1+1 = 2. <div>(Author in Journal..., Page ...)</div> Another study finds...</div>
But this leads to the () text being pushed into a new line, but the text flow shouldn't be altered at all, I just want to achieve the copy+paste behavior. Is there a way to achieve this? I thought about applying a div class to the () and canceling the attributes in the .css file, but somehow it did not work.
Essentially a triple click will mark a paragraph. So even if you were able to make your inner div inline (which is very simple, you can use style="display:inline"), the browsers text analyzing engine would still read it as one paragraph (or one block) and use the standard behaviour: mark the paragraph.
So basically: no, not if you use only CSS. You have to use JavaScript to identify a triple click on the element and mark it.