Questions tagged [ellipsis]

An ellipsis is a series of dots, (usually 3, i.e. "…") used to indicate the omission of a word within some text, or more commonly that the preceding text has been truncated.

737 questions
8
votes
2 answers

Ellipsis with C# (ending on a full word)

I'm trying to implement ellipsis in Umbraco, the requirement being 15 characters of intro text but always ending on a full word. I thought of using XSLT, but then realised that I can use a simple extension method written in C# instead. I can easily…
Marko
  • 71,361
  • 28
  • 124
  • 158
8
votes
1 answer

How to fix text overflowing TextView with padding android:ellipsize="marquee"

On some Android devices (LG Google Nexus 5 with Android L and M) a TextView with android:ellipsize="marquee" and padding results in the text overflowing the textview. It occurs on the right side but not on the left side of the TextView, though,…
Wojtek Dmyszewicz
  • 4,188
  • 5
  • 30
  • 42
8
votes
3 answers

Ellipsis on focused input

I have an input element with a placeholder which needs a CSS ellipsis. When there is no focus on the input, the ellipsis works correctly, but when I click on the input field, the ellipsis disappears and I see the full placeholder. How do I prevent…
random_stuff
  • 197
  • 2
  • 12
8
votes
1 answer

TextView: Add text after ellipsis or change ellipsis character

What I am trying to do I am trying to have a TextView with android:ellipsize="end" android:maxLines="3" that instead of the "..." has a "... Show More" at the end. Where I am If the TextView would be single line this would be easy as I could use 2…
Andrei Tudor Diaconu
  • 2,157
  • 21
  • 26
8
votes
3 answers

How can I use ellipses in a fluid width table without making each column the same size?

Let's say my columns in a table are id, name, description, and phone. The description column is 1-255 characters, but the id is only max 3 characters. I'd like the columns to be appropriately sized rather than each column being the same size. And…
Ryan
  • 14,682
  • 32
  • 106
  • 179
8
votes
1 answer

Passing a class object with trivial copy constructor, but no output?

I tried this program with GCC and Clang, but both output nothing #include struct A { A(){} template A(T &) { std::cout << "copied!"; } }; void f(...) { } int main() { A a; f(a); } According to my Standards…
Johannes Schaub - litb
  • 496,577
  • 130
  • 894
  • 1,212
8
votes
1 answer

Display dot-dot-dot progress in a WPF button

I found quite a few examples for showing progress where the progress bars and wheels are used however; I could find only one javascript example to show an ellipsis (dot-dot-dot) to refer progress hence I thought of asking this question. My app is…
G J
  • 101
  • 2
  • 4
7
votes
2 answers

What is the precedence of the meta-operator ...?

What is the precedence of the meta-operator ... whose job is to unpack template type parameter packs? I imagine it's pretty low, but how low is it? The C++ standard says: The precedence of operators is not directly specified, but it can be derived…
fredoverflow
  • 256,549
  • 94
  • 388
  • 662
7
votes
2 answers

Place text after dots inline with the second line of text overflow ellipsis

I need to hide a part of the text that is longer than 2 lines and add '...123 T.' as an indicator of the hidden overflow, like below: What I have so far: https://plnkr.co/edit/NTlv4NpyhRTzJkNQ?preview Html:
Ketija Krista
  • 143
  • 1
  • 8
7
votes
2 answers

How to make div ellipsis with multiple paragraphs inside it?

This is a sample text.

This is a 2nd sample text. existing inside a paragraph. I want to make this ellipsis to avoid overflow text.

This is a last paragraph which is not going to display as 3 lines are already…

Omkar Patil
  • 203
  • 1
  • 3
  • 10
7
votes
2 answers

Output a hashtable of Arrays in Powershell

I am at my wits end. I am new to powershell and I have tried everything I have been able to find on this subject online. What I am trying to do is print a hashtable of arrays to a file without the stupid ellipsis appearing at the end of each array…
Bitfiddler
  • 3,942
  • 7
  • 36
  • 51
7
votes
3 answers

Pass optional arguments to function, three dots

I'm confused how ... works. tt = function(...) { return(x) } Why doesn't tt(x = 2) return 2? Instead it fails with the error: Error in tt(x = 2) : object 'x' not found Even though I'm passing x as argument ?
Rafael
  • 3,096
  • 1
  • 23
  • 61
7
votes
2 answers

How is ellipsis (...) localized?

I'm making a piece of software that is intended to be localized in the future. I'm wondering how ellipsis (the ... indication an action opens a new window/dialog) are typically localized. Do all languages use ellipsis this way? Can I safely add the…
Eneroth3
  • 919
  • 8
  • 13
7
votes
2 answers

React Native handling ellipsis when multiple Text components in a row

I am trying to build a comments section in React Native but I'm having trouble handling text overflow and ellipsis properly. The structure is simple and looks as follows: Ideally, when the username is long enough it should be trimmed and the action…
fmoga
  • 233
  • 1
  • 4
  • 13
7
votes
1 answer

Using text-overflow: ellipsis; on a parent div when the child is an input

I have multiple non-wrapping, inline child elements within a parent div that has a set width and text-overflow set to ellipsis. When the last child is an anchor tag, the ellipses work fine, but when it's an input, the text just clips. Because the…
Kurtis Beavers
  • 185
  • 4
  • 11